Re: [Python-Dev] Re: comprehension abbreviation (was: Adding any() andall())

2005-03-29 Thread Alex Martelli
On Mar 29, 2005, at 17:41, Terry Reedy wrote: ... "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Having to write [x for x in seq] to produce a copy of a list doesn't seem that outrageous to me, Except for (currently) leaving the last value of sequence bound to 'x'

[Python-Dev] Weekly Python Patch/Bug Summary

2005-03-29 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 297 open (+11) / 2812 closed (+11) / 3109 total (+22) Bugs: 871 open ( +1) / 4900 closed (+33) / 5771 total (+34) RFE : 175 open ( +0) / 150 closed ( +0) / 325 total ( +0) New / Reopened Patches __ Decimal i

[Python-Dev] Re: comprehension abbreviation (was: Adding any() andall())

2005-03-29 Thread Terry Reedy
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Having to write > > [x for x in seq] > > to produce a copy of a list doesn't seem that outrageous to me, Except for (currently) leaving the last value of sequence bound to 'x' after making the copy, how is the abov

Re: [Python-Dev] using SCons to build Python

2005-03-29 Thread Barry Warsaw
On Sun, 2005-03-27 at 20:55, Adam MacBeth wrote: > Has anyone ever considered using SCons to build Python? SCons is a > great build tool written in Python that provides some Autoconf-like > functionality (http://www.scons.org). It seems like this type of > self-hosting would be a great testament to

Re: [Python-Dev] Pickling instances of nested classes

2005-03-29 Thread Samuele Pedroni
Walter Dörwald wrote: For XML: 1) Those classes are the element types and the nested classes are the attributes. 2) Being able to define those attributes as separate classes makes it possible to implement custom functionality (e.g. for validation or for handling certain attribute types like URLs, c

Re: [Python-Dev] Pickling instances of nested classes

2005-03-29 Thread Martin v. Löwis
Walter Dörwald wrote: So is this change wanted? useful? implementable with reasonable effort? Or just not worth it? I think it is just not worth it. This means I won't attempt to implement it. I think I defined originally the __module__ attribute for classes to support better pickling (and defined

Re: [Python-Dev] 64-bit sequence and buffer protocol

2005-03-29 Thread Martin v. Löwis
Travis Oliphant wrote: What is the opinion of people on this list about how to fix the problem. I believe Martin was looking at the problem and had told Perry Greenfield he was "fixing it." Apparently at the recent PyCon, Perry and he talked and Martin said the problem is harder than he had

Re: [Python-Dev] using SCons to build Python

2005-03-29 Thread Michael Hudson
Adam MacBeth <[EMAIL PROTECTED]> writes: > Has anyone ever considered using SCons to build Python? Well, er, there's an obvious problem here somewhere... > SCons is a great build tool written in Python that provides some > Autoconf-like functionality (http://www.scons.org). It seems like > this

Re: [Python-Dev] New PyPI broken package editing

2005-03-29 Thread Martin v. Löwis
Walter Dörwald wrote: So can I have one setup.py for both Python 2.4 and Python 2.5 that does the correct thing when creating a Windows installer for Python 2.4 (I've used Unicode strings for that until now) and using the upload command with Python CVS (which seems to require a byte string now)?

Re: [Python-Dev] using SCons to build Python

2005-03-29 Thread Bob Ippolito
On Mar 29, 2005, at 5:15 PM, Aahz wrote: On Sun, Mar 27, 2005, Adam MacBeth wrote: Has anyone ever considered using SCons to build Python? SCons is a great build tool written in Python that provides some Autoconf-like functionality (http://www.scons.org). It seems like this type of self-hosting wou

Re: [Python-Dev] using SCons to build Python

2005-03-29 Thread Aahz
On Sun, Mar 27, 2005, Adam MacBeth wrote: > > Has anyone ever considered using SCons to build Python? SCons is a > great build tool written in Python that provides some Autoconf-like > functionality (http://www.scons.org). It seems like this type of > self-hosting would be a great testament to the

[Python-Dev] Pickling instances of nested classes

2005-03-29 Thread Walter Dörwald
Currently instances of nested classes can't be pickled. For old style classes unpickling fails to find the class: >>> import cPickle >>> class Foo: ...class Bar: ... pass ... >>> cPickle.loads(cPickle.dumps(Foo.Bar())) Traceback (most recent call last): File "", line 1, in ? AttributeE

Re: [Python-Dev] New PyPI broken package editing

2005-03-29 Thread Walter Dörwald
Martin v. Löwis sagte: > Walter Dörwald wrote: >> I'm not sure if this is the right approach. > > I think the approach is right, but the implementation is wrong. > >> The encoding I specify in >> setup.py should be independent of the encoding used between distutils and >> PyPI to communicate on t

[Python-Dev] 64-bit sequence and buffer protocol

2005-03-29 Thread Travis Oliphant
I'm posting to this list to again generate open discussion on the problem in current Python that an int is used in both the Python sequence protocol and the Python buffer protocol. The problem is that a C-int is typically only 4 bytes long while there are many applications (mmap for example),

Re: [Python-Dev] Re: webbrowser.py

2005-03-29 Thread Oleg Broytmann
Hi! On Thu, Mar 24, 2005 at 11:36:41AM -0300, Rodrigo Dias Arruda Senra wrote: > Edit libwebbrowser.tex as you see fit, then send it to me > and I'll TeXify it back to you. Uploaded to http://python.org/sf/754022 . I am not a native English speaker, and this is the first time I've edited a Te

[Python-Dev] using SCons to build Python

2005-03-29 Thread Adam MacBeth
Has anyone ever considered using SCons to build Python? SCons is a great build tool written in Python that provides some Autoconf-like functionality (http://www.scons.org). It seems like this type of self-hosting would be a great testament to the power of Python as well as helping to reinforce the

Re: [Python-Dev] Re: comprehension abbreviation (was: Adding any() and all())

2005-03-29 Thread Guido van Rossum
I thought I had been clear already, but since this thread keeps going maybe I need to reiterate that there's zero chance that this syntax proposal (or anything like it) will be accepted. You all are of course free to continue to discuss it, but as I've explained before it just isn't worth it. --

Re: [Python-Dev] Re: comprehension abbreviation (was: Adding any() and all())

2005-03-29 Thread Josiah Carlson
Steve Holden <[EMAIL PROTECTED]> wrote: [...] > Having to write > > [x for x in seq] > > to produce a copy of a list doesn't seem that outrageous to me, and I > don't find the predicate-less case of your proposal that convincing: > > [x in seq] > > seems somehow too terse. And is a

Re: [Python-Dev] Re: webbrowser.py

2005-03-29 Thread Oleg Broytmann
On Tue, Mar 29, 2005 at 06:46:09PM +0200, Reinhold Birkenfeld wrote: > Rodrigo Dias Arruda Senra wrote: > > Outstanding work Oleg. I read it through and wouldn't change a bit. > > I have revised: libwebbrowser.tex.patch and webbrowser.py.patch. > > They are Ok regarding grammar, TeX and ... what

[Python-Dev] Re: webbrowser.py

2005-03-29 Thread Reinhold Birkenfeld
Rodrigo Dias Arruda Senra wrote: > | > On Thu, Mar 24, 2005 at 11:36:41AM -0300, Rodrigo Dias Arruda Senra > wrote: > | > > Edit libwebbrowser.tex as you see fit, then send it to me > | > > and I'll TeXify it back to you. > | > > | >Uploaded to http://python.org/sf/754022 . I am not a n

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Python thread_pthread.h, 2.53, 2.53.4.1

2005-03-29 Thread Andrew MacIntyre
Martin v. Löwis wrote: Andrew MacIntyre wrote: This change has broken the build on FreeBSD 4.x for me: gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes - I. -I./Include -DPy_BUILD_CORE -o Python/thread.o Python/thread.c In file included from Python/thread.c:101: Pyth

[Python-Dev] BRANCH FREEZE for 2.4.1 final, 2005-03-30 00:00 UTC

2005-03-29 Thread Anthony Baxter
The release24-maint branch is FROZEN from 00:00 UTC, 2005-03-30 (in about 11 hours from now). As usual, unless you're in the set (Anthony, MvL, Fred), please hold off on checkins to the branch until I send a message unfreezing it. Once we've had the appropriate brown-paper-bag time delay, the br

Re: [Python-Dev] Re: webbrowser.py

2005-03-29 Thread Oleg Broytmann
Hello! On Mon, Mar 28, 2005 at 06:31:29PM -0300, Rodrigo Dias Arruda Senra wrote: > Outstanding work Oleg. I read it through and wouldn't change a bit. > I have revised: libwebbrowser.tex.patch and webbrowser.py.patch. > They are Ok regarding grammar, TeX and ... whatever . > I recommend to ap