top | item 44618534

(no title)

elternal_love | 7 months ago

Oh am I writing python code for some years this should be fun ... oh. Oh I see. Hmm. Ok, just give it to me: are they turing complete yet or do we need to wait for 3.14?

discuss

order

zahlman|7 months ago

They've been Turing-complete since they were introduced:

  $ py3.6
  >>> def arbitrary_code(): pass
  ... 
  >>> f"{exec('arbitrary_code()')}"
  'None'
  >>>