[New-bugs-announce] [issue4225] unicode_literals doesn't work in exec

Benjamin Peterson report at bugs.python.org
Tue Oct 28 23:06:44 CET 2008


New submission from Benjamin Peterson <musiccomposition at gmail.com>:

exec "from __future__ import unicode_literals; print type('')"

gives <type 'str'> 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 review, patch
messages: 75307
nosy: benjamin.peterson, georg.brandl
priority: high
severity: normal
status: open
title: unicode_literals doesn't work in exec
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file11902/fix_exec_literals.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4225>
_______________________________________


More information about the New-bugs-announce mailing list