[Chicago] python 3 on leopard anyone?
Brian Ray
bray at sent.com
Tue Jan 22 07:46:17 CET 2008
That is a little weird. I found the same thing:
[mini] Python-3.0a2 9 > /usr/local/bin/python
Python 3.0a2 (r30a2:59382, Jan 21 2008, 23:57:05)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 1
1
>>> 2
2
>>>
[mini] Python-3.0a2 10 > export LANG=en_US
[mini] Python-3.0a2 11 > /usr/local/bin/python
Python 3.0a2 (r30a2:59382, Jan 21 2008, 23:57:05)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 1
>>> 2
You should file a bug. My guess is that it has something to do with
the readline dependancy.
Perhaps mention that if LANG=en_US, then readline is dynamically
loaded from "/usr/local/lib/python3.0/lib-dynload/readline.so". in the
other case it is loaded from "/System/Library/Frameworks/
Python.framework/Versions/2.5/lib/python2.5/lib-dynload/readline.so".
You can see this by send python the "-v" flag. A temporarily fix would
be to force the the use of the system readline while configuring. But
I do not know how this would work in case others build this without
autoconfig.
I tried debugging this myself, http://wiki.python.org/moin/DebuggingWithGdb
, but I am either to tired tonight or lack the tolerance to understand
the cruft of workaround for previous issues with locale in the
readline that ships with Python.
Brian Ray
bray at sent.com
http://kazavoo.com/blog
More information about the Chicago
mailing list