Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Lib textwrap.py,1.18,1.19
Just van Rossum <just@letterror.com> writes:
I have _no_ idea what's going on here.
I do: readline. I wouldn't want to live without readline, but some of the things it does call for the application of thumbscrews. Cheers, M. -- FORD: Just pust the fish in your ear, come on, it's only a little one. ARTHUR: Uuuuuuuuggh! -- The Hitch-Hikers Guide to the Galaxy, Episode 1
I wouldn't want to live without readline, but some of the things it does call for the application of thumbscrews.
Indeed. But I thought I fixed that in 2.3, by restoring the locale after initializing GNU readline. Maybe the Mac IDE environment starts up in a different locale? Would be typical for Mac... --Guido van Rossum (home page: http://www.python.org/~guido/)
Guido van Rossum wrote:
But I thought I fixed that in 2.3, by restoring the locale after initializing GNU readline. Maybe the Mac IDE environment starts up in a different locale? Would be typical for Mac...
I thought I clearly showed command line examples. This is a vanilla Unix Python. Martin: yes, I've got readline installed and yes Python was built from CVS. Just
But I thought I fixed that in 2.3, by restoring the locale after initializing GNU readline. Maybe the Mac IDE environment starts up in a different locale? Would be typical for Mac...
I thought I clearly showed command line examples. This is a vanilla Unix Python.
Martin: yes, I've got readline installed and yes Python was built from CVS.
Hm. Mayb the code in Modules/readline.c somehow has the setlocale() call #ifdef'ed out? Can you put a printf inside the #ifdef SAVE_LOCALE block to see if it is executed? --Guido van Rossum (home page: http://www.python.org/~guido/)
Guido van Rossum <guido@python.org> writes:
Martin: yes, I've got readline installed and yes Python was built from CVS.
Hm. Mayb the code in Modules/readline.c somehow has the setlocale() call #ifdef'ed out? Can you put a printf inside the #ifdef SAVE_LOCALE block to see if it is executed?
I'm confused by Just's observation that it happens *only* with -S, in interactive mode. I would have expected that "plain" interactive mode behaves the same, but this is not what Just reported. Regards, Martin
Martin v. Löwis wrote:
I'm confused by Just's observation that it happens *only* with -S, in interactive mode. I would have expected that "plain" interactive mode behaves the same, but this is not what Just reported.
One more time: sh-2.05a$ ./python.exe Python 2.3a0 (#42, Dec 11 2002, 10:33:42) [GCC 3.1 20020420 (prerelease)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import string; string.whitespace '\t\n\x0b\x0c\r '
sh-2.05a$ ./python.exe -S Python 2.3a0 (#42, Dec 11 2002, 10:33:42) [GCC 3.1 20020420 (prerelease)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import string; string.whitespace '\t\n\x0b\x0c\r \xa0'
sh-2.05a$ LANG=C ./python.exe -S Python 2.3a0 (#42, Dec 11 2002, 10:33:42) [GCC 3.1 20020420 (prerelease)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import string; string.whitespace '\t\n\x0b\x0c\r '
Guys, I don't care about enough about this problem (if it is one) to dig any deeper. I just happened to notice the textwrap breakage when I was importing lots of arbitrary modules to do some import timing... Just
participants (4)
-
Guido van Rossum
-
Just van Rossum
-
martin@v.loewis.de
-
Michael Hudson