bug in 2.0b1 unicode support

effbot at pythonware.com effbot at pythonware.com
Fri Sep 8 12:57:26 CEST 2000


richard wolff wrote:
> being unsure where to report this:

http://sourceforge.net/projects/python/
=> bug tracker

> Python 2.0b1 (#3, Sep  6 2000, 12:34:06)
> [GCC 2.95.2 19991024 (release)] on sunos5
> Type "copyright", "credits" or "license" for more information.
> >>> eval("1+2")
> 3
> >>> eval(u"1+2")
> Traceback (most recent call first):
>   File "<stdin>", line 1, in ?
> TypeError: eval() argument 1 must be string or code object
>
> This problem means that the command line invocation.
> Python -U fails when "import site" tries to import os.py
> and fails on line 325 in _exists  ...  eval(name)

the -U option should probably have been marked as experimental.
after all, Python 2.0's compiler cannot deal with Unicode...

</F>

<!-- daily news from the python universe:
http://www.pythonware.com/daily/index.htm
-->


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list