Changes between Initial Version and Version 10 of Ticket #16065


Ignore:
Timestamp:
08/28/14 18:55:05 (5 years ago)
Author:
aapitzsch
Comment:

See https://docs.python.org/2.7/reference/simple_stmts.html#exec

The first expression may also be a tuple of length 2 or 3. In this case, the optional parts must be omitted. The form exec(expr, globals) is equivalent to exec expr in globals, while the form exec(expr, globals, locals) is equivalent to exec expr in globals, locals. The tuple form of exec provides compatibility with Python 3, where exec is a function rather than a statement.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16065

    • Property Status changed from new to needs_review
    • Property Authors changed from to André Apitzsch
    • Property Dependencies changed from to #16712
    • Property Branch changed from to public/ticket/16065
    • Property Milestone changed from sage-6.2 to sage-6.4
    • Property Commit changed from to 67871a8566fc34de2fc3762a7cf1fce19e316dd9
  • Ticket #16065 – Description

    initial v10  
    33The tool 2to3 changes the {{{exec}}} statement into the {{{exec()}}} function.
    44[[br]]
    5 But the function is not supported by Py2.
     5The tuple form of {{{exec}}} provides compatibility with Python 3, where {{{exec}}} is a function rather than a statement.
    66
    77There are 6 effected modules.