eval and unicode
gandalf at shopzeus.com
Tue Mar 25 10:07:55 CET 2008
> I think your confusion comes from the use of the interactive mode.
It is not. The example provided in the original post will also work when
you put then into a python source file.
> PEP 263 doesn't really apply to the interactive mode, hence the
> behavior in interactive mode is undefined, and may and will change
> across Python versions.
The expression passed to eval() cannot be considered an interactive session.
> Ideally, interactive mode should assume the terminal's encoding for source code, but that has not been implemented.
Again, please read the original messages - many of my examples also work
when you put them into a python source file. They have nothing to do
More information about the Python-list