Changes between Version 15 and Version 16 of DeveloperGuidelines/Py_2_3


Ignore:
Timestamp:
06/26/19 19:31:06 (5 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Py_2_3

    v15 v16  
    4848except Exception as e: # new standard
    4949    ...
     50}}}
     51
     52=== No exec statements ===
     53
     54In Python-3, the {{{exec}}} statement has become a function {{{exec()}}}. Python-2.7 accepts the function-syntax as well, so we use it throughout:
     55
     56{{{#!python
     57# Deprecated:
     58exec pyexpr
     59# New Standard:
     60exec(pyexpr)
    5061}}}
    5162