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 loade

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 Py

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 preferr

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 us

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

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

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

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: >pri

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 accoun

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 almos

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 pro

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 firs

[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 http

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 >>requir

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

2005-07-09 Thread Nick Coghlan
Greg Ewing wrote: > Guido van Rossum wrote: > > >>I sometimes think it was >>a mistake to introduce elif just to save typing "else if". >> >>The problem with the elwhile/elfor/eltry idea > > > is that you're just as likely to need e.g. > >>a "try" in the else clause of a while-loop as another