Changes between Version 15 and Version 16 of DeveloperGuidelines/Py_2_3
- Timestamp:
- 06/26/19 19:31:06 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Py_2_3
v15 v16 48 48 except Exception as e: # new standard 49 49 ... 50 }}} 51 52 === No exec statements === 53 54 In 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: 58 exec pyexpr 59 # New Standard: 60 exec(pyexpr) 50 61 }}} 51 62