[issue4225] unicode_literals doesn't work in exec

2020-11-04 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +22055 pull_request: https://github.com/python/cpython/pull/23143 ___ Python tracker ___ ___

[issue4225] unicode_literals doesn't work in exec

2008-10-31 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This problem will still persist for anybody who uses PyParser_* APIs and then PyNode_Compile, but we can probably only document that. ___ Python tracker <[EMAIL PROTECTED]>

[issue4225] unicode_literals doesn't work in exec

2008-10-30 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: The removal of the "static" was a mistake. Fixed in r67066. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4225] unicode_literals doesn't work in exec

2008-10-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The patch is good, except that you removed "static" before the function err_input (?) ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4225] unicode_literals doesn't work in exec

2008-10-30 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11912/parser_module_fixed_too.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4225] unicode_literals doesn't work in exec

2008-10-30 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11911/parser_module_fixed_too.patch ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4225] unicode_literals doesn't work in exec

2008-10-30 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Here's a patch that handles the parser module. Added file: http://bugs.python.org/file11911/parser_module_fixed_too.patch ___ Python tracker <[EMAIL PROTECTED]> __

[issue4225] unicode_literals doesn't work in exec

2008-10-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The newer patch is good. I found another use of PyAST_FromNode() with NULL flags, and which has the same problem: import parser s=parser.suite( "from __future__ import unicode_literals; print type('')") eval(s.compile()) But I d

[issue4225] unicode_literals doesn't work in exec

2008-10-29 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This patch uses heap variables and tries to catch more places. Added file: http://bugs.python.org/file11906/pass_flags.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4225] unicode_literals doesn't work in exec

2008-10-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The attached patch works, but can be simplified by using a stack variable: Index: pythonrun.c === --- pythonrun.c (revision 66902) +++ pythonrun.c (working copy) @@ -1284,7

[issue4225] unicode_literals doesn't work in exec

2008-10-28 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11903/fix_exec_literals.patch ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4225] unicode_literals doesn't work in exec

2008-10-28 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11902/fix_exec_literals.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4225] unicode_literals doesn't work in exec

2008-10-28 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: exec "from __future__ import unicode_literals; print type('')" gives in 2.6/2.7. It's the result of flags not being passed from the parser to AST. -- components: Interpreter Core files: fix_exec_literals.patch keywords: needs r