Re: [Python-Dev] Linux Python linking with G++?

2005-07-09 Thread Ulrich Berning
David Abrahams schrieb: Martin v. Löwis [EMAIL PROTECTED] writes: David Abrahams wrote: Unless, of course, I'm missing something. So if I am missing something, what is it? You are missing something, and I can only repeat myself. Some systems require main() to be compiled as

[Python-Dev] __autoinit__

2005-07-09 Thread Ralf W. Grosse-Kunstleve
For those who didn't like my proposal a week ago, please have another look: http://mail.python.org/pipermail/python-list/2005-July/289446.html Please reply only to python-list. Cheers, Ralf ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFE for review)

2005-07-09 Thread M.-A. Lemburg
Neil Hodgson wrote: Thomas Heller: But adding u'\u5b66\u6821\u30c7\u30fc' to sys.path won't allow to import this file as module. Internally Python\import.c converts everything to strings. I started to refactor import.c to work with PyStringObjects instead of char buffers as a first step -

Re: [Python-Dev] __autoinit__

2005-07-09 Thread Aahz
On Sat, Jul 09, 2005, Ralf W. Grosse-Kunstleve wrote: For those who didn't like my proposal a week ago, please have another look: http://mail.python.org/pipermail/python-list/2005-July/289446.html Please reply only to python-list. Looks like you mis-sent this to python-dev; you probably

Re: [Python-Dev] Linux Python linking with G++?

2005-07-09 Thread David Abrahams
Ulrich Berning [EMAIL PROTECTED] writes: If you build C++ extensions on HP-UX with aCC, Python must be compiled and linked as a C++ program. This is documented. You mean dynamically loaded C++ extensions, or the kind that are linked into the Python executable? I'm willing to believe almost

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFE for review)

2005-07-09 Thread Neil Hodgson
M.-A. Lemburg: I don't really buy this trick: what if you happen to have a home directory with Unicode characters in it ? Most people choose account names and thus home directory names that are compatible with their preferred locale settings: German users are unlikely to choose an account

Re: [Python-Dev] Chaining try statements: eltry?

2005-07-09 Thread Thomas Lotze
Nick Coghlan wrote: I don't think that's a good idea. What would the following monstrosity mean?: if 0: print Ran the if else for item in (1, 2, 3): print item else try: print No exception here! except: pass else: print Who's else is

Re: [Python-Dev] [C++-sig] GCC version compatibility

2005-07-09 Thread Ralf W. Grosse-Kunstleve
--- David Abrahams [EMAIL PROTECTED] wrote: Yes, all the tests are passing that way. (On ELF based Linux/x86, at least.) That leaves me wondering * when is --with-cxx really necessary? I think it's plausible that if you set sys.dlopenflags to share symbols it *might* end up being

Re: [Python-Dev] [C++-sig] GCC version compatibility

2005-07-09 Thread Christoph Ludwig
On Sat, Jul 09, 2005 at 12:08:08AM +0200, Martin v. Löwis wrote: David Abrahams wrote: When I looked into this problem I saw that configure in fact builds a test executable that included an object file compiled with g++. If the link step with gcc succeeds then LINKCC is set as above, otherwise

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFEfor review)

2005-07-09 Thread Meyer, Tony
Well, most people when confronted with this will rename the directory to something simple like ulib and continue. I don't really buy this trick: what if you happen to have a home directory with Unicode characters in it ? I think this is one of the most common places, too. Whenever I've come

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFE for review)

2005-07-09 Thread M.-A. Lemburg
Neil Hodgson wrote: M.-A. Lemburg: I don't really buy this trick: what if you happen to have a home directory with Unicode characters in it ? Most people choose account names and thus home directory names that are compatible with their preferred locale settings: German users are

Re: [Python-Dev] Adding the 'path' module (was Re: Some RFE for review)

2005-07-09 Thread Guido van Rossum
On 7/9/05, Neil Hodgson [EMAIL PROTECTED] wrote: M.-A. Lemburg: I don't really buy this trick: what if you happen to have a home directory with Unicode characters in it ? Most people choose account names and thus home directory names that are compatible with their preferred locale

Re: [Python-Dev] Linux Python linking with G++?

2005-07-09 Thread Ulrich Berning
David Abrahams schrieb: Ulrich Berning [EMAIL PROTECTED] writes: If you build C++ extensions on HP-UX with aCC, Python must be compiled and linked as a C++ program. This is documented. You mean dynamically loaded C++ extensions, or the kind that are linked into the Python executable?

Re: [Python-Dev] Linux Python linking with G++?

2005-07-09 Thread David Abrahams
Ulrich Berning [EMAIL PROTECTED] writes: David Abrahams schrieb: Ulrich Berning [EMAIL PROTECTED] writes: If you build C++ extensions on HP-UX with aCC, Python must be compiled and linked as a C++ program. This is documented. You mean dynamically loaded C++ extensions, or the kind