[Python-Dev] OFF-TOPIC-BUT-IMPORTANT: End of free internet model by 2012 ?

2008-06-11 Thread Daniel Bonekeeper
Hi everybody on the list ! Sorry about the off-topic message, but giving the nature of the message and the nature of the list (after all, everybody here uses Internet or develops for web in some way), I decided to post this here and see what you guys think about it. http://ipower.ning.com/netneut

[Python-Dev] No betas today

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Much thanks to Benjamin Peterson and Alexandre Vassalotti for providing much help today trying to get the betas out. Unfortunately, it's not gonna happen today. There are two issues blocking the release. http://bugs.python.org/issue3088 http:/

Re: [Python-Dev] bug or a feature?

2008-06-11 Thread Scott Dial
Maciej Fijalkowski wrote: On Thu, Jun 12, 2008 at 2:32 AM, Terry Reedy <[EMAIL PROTECTED]> wrote: "Scott Dial" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] || If non-string keys are not allowed in __dict__, then the AddOns library | should be changed to add another dict to the obj

Re: [Python-Dev] [Python-3000] Potential beta showstopper (was Re: Have been sick, am behind on mail, let me know if there's anything urgent for me)

2008-06-11 Thread Benjamin Peterson
On Wed, Jun 11, 2008 at 9:18 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Wed, Jun 11, 2008 at 3:18 PM, Benjamin Peterson >> >> Already done. > > Done what? Fixed, or backed out? Any more details? Old farts who > aren't on IRC want to know. :-) That would be fixed. > > -- > --Guido van Ro

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 11, 2008, at 10:16 PM, Guido van Rossum wrote: On Wed, Jun 11, 2008 at 2:42 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: On Jun 11, 2008, at 4:54 PM, Alexandre Vassalotti wrote: I have two release blockers pending review: http://bugs.pytho

Re: [Python-Dev] [Python-3000] Potential beta showstopper (was Re: Have been sick, am behind on mail, let me know if there's anything urgent for me)

2008-06-11 Thread Guido van Rossum
On Wed, Jun 11, 2008 at 3:18 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > On Wed, Jun 11, 2008 at 5:13 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: >> Okay, we have a potential showstopper for the betas today. All the 3.0 >> buildbots are bloody red: >> >> http://www.python.org/dev/buildbot/s

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread Guido van Rossum
On Wed, Jun 11, 2008 at 2:42 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: > On Jun 11, 2008, at 4:54 PM, Alexandre Vassalotti wrote: >> I have two release blockers pending review: >> >> http://bugs.python.org/issue2918 >> http://bugs.python.org/issue2917 >> >> I believe both patches are ready to b

Re: [Python-Dev] bug or a feature?

2008-06-11 Thread Terry Reedy
"Maciej Fijalkowski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On Thu, Jun 12, 2008 at 2:32 AM, Terry Reedy <[EMAIL PROTECTED]> wrote: | > | > "Scott Dial" <[EMAIL PROTECTED]> wrote in message | > news:[EMAIL PROTECTED] | > || If non-string keys are not allowed in __dict__, th

Re: [Python-Dev] bug or a feature?

2008-06-11 Thread Maciej Fijalkowski
On Thu, Jun 12, 2008 at 2:32 AM, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Scott Dial" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > || If non-string keys are not allowed in __dict__, then the AddOns library > | should be changed to add another dict to the object of interest to

Re: [Python-Dev] bug or a feature?

2008-06-11 Thread Terry Reedy
"Scott Dial" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] || If non-string keys are not allowed in __dict__, then the AddOns library | should be changed to add another dict to the object of interest to track | these AddOn instances. There are three possibilities with respect to __

Re: [Python-Dev] [Python-3000] Potential beta showstopper (was Re: Have been sick, am behind on mail, let me know if there's anything urgent for me)

2008-06-11 Thread Benjamin Peterson
On Wed, Jun 11, 2008 at 5:13 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Okay, we have a potential showstopper for the betas today. All the 3.0 > buildbots are bloody red: > > http://www.python.org/dev/buildbot/stable/ > > Running the tests loc

[Python-Dev] Potential beta showstopper (was Re: Have been sick, am behind on mail, let me know if there's anything urgent for me)

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, we have a potential showstopper for the betas today. All the 3.0 buildbots are bloody red: http://www.python.org/dev/buildbot/stable/ Running the tests locally on OS X 10.5 and Ubuntu 8.04 confirm that the tests hang after test_xmlrpc.

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 11, 2008, at 4:54 PM, Alexandre Vassalotti wrote: On Wed, Jun 11, 2008 at 7:35 AM, Barry Warsaw <[EMAIL PROTECTED]> wrote: My plan is to begin building the betas tonight, at around 9 or 10pm EDT (0100 to 0200 UTC Thursday). If a showstopp

Re: [Python-Dev] update_wrapper should preserve staticmethod behavior

2008-06-11 Thread Guido van Rossum
On Wed, Jun 11, 2008 at 12:22 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > Calvin Spealman socialserve.com> writes: >> >> staticmethod doesn't wrap anything, it just creates a descriptor on >> the class with a __get__ that returns the original, untouched >> callable. Doesn't even care _what_ th

Re: [Python-Dev] Assignment to None

2008-06-11 Thread Curt Hagenlocher
On Sun, Jun 8, 2008 at 10:19 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > > So, it's okay to setattr the attribute name "None" but not okay to set > > it directly? Is this deliberate or is it an unintentional side effect > > of parser changes to prevent assignment to None? > > It's deliber

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread Alexandre Vassalotti
On Wed, Jun 11, 2008 at 7:35 AM, Barry Warsaw <[EMAIL PROTECTED]> wrote: > My plan is to begin building the betas tonight, at around 9 or 10pm EDT > (0100 to 0200 UTC Thursday). If a showstopper comes up before then, I'll > email the list. If you think we really aren't ready for beta, then I woul

Re: [Python-Dev] rest markup in ctypes docs

2008-06-11 Thread Georg Brandl
Thomas Heller schrieb: Thomas Heller schrieb: There are a few cases where the ctypes docs are rendered incorrectly: http://docs.python.org/dev/library/ctypes.html#function-prototypes This looks as if 'prototype' would be a symbol exposed by ctypes; it is not - it is used as a placeholder for t

Re: [Python-Dev] bug or a feature?

2008-06-11 Thread Scott Dial
Phillip J. Eby wrote: That test is there to ensure that it interoperates with code using the AddOns library from the Cheeseshop; SQLAlchemy is not the source of the usage. Now that's interesting. The AddOns library uses class objects as keys in the __dict__, but that doesn't says anything abo

Re: [Python-Dev] update_wrapper should preserve staticmet hod behavior

2008-06-11 Thread Antoine Pitrou
Calvin Spealman socialserve.com> writes: > > staticmethod doesn't wrap anything, it just creates a descriptor on > the class with a __get__ that returns the original, untouched > callable. Doesn't even care _what_ the thing you use it on is > (function, other callable, or something else ent

Re: [Python-Dev] update_wrapper should preserve staticmethod behavior

2008-06-11 Thread Calvin Spealman
staticmethod doesn't wrap anything, it just creates a descriptor on the class with a __get__ that returns the original, untouched callable. Doesn't even care _what_ the thing you use it on is (function, other callable, or something else entirely.) This actually shouldn't be attempted on non

Re: [Python-Dev] rest markup in ctypes docs

2008-06-11 Thread Thomas Heller
Thomas Heller schrieb: > There are a few cases where the ctypes docs are rendered incorrectly: > > http://docs.python.org/dev/library/ctypes.html#function-prototypes > > This looks as if 'prototype' would be a symbol exposed by ctypes; it is > not - it is used as a placeholder for the object retu

[Python-Dev] rest markup in ctypes docs

2008-06-11 Thread Thomas Heller
There are a few cases where the ctypes docs are rendered incorrectly: http://docs.python.org/dev/library/ctypes.html#function-prototypes This looks as if 'prototype' would be a symbol exposed by ctypes; it is not - it is used as a placeholder for the object returned by calls to the ctypes.CFUNCT

Re: [Python-Dev] PEP 8 and optional underscores

2008-06-11 Thread Benjamin Peterson
On Wed, Jun 11, 2008 at 1:03 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > "Function names should be lowercase, with words separated by underscores as > necessary to improve readability." -- PEP 8 > > If I'm reading this correctly, then underscores are not required > everywhere. Can some of

[Python-Dev] PEP 8 and optional underscores

2008-06-11 Thread Raymond Hettinger
"Function names should be lowercase, with words separated by underscores as necessary to improve readability." -- PEP 8 If I'm reading this correctly, then underscores are not required everywhere. Can some of these be shortened? function:: active_count() method:: Thread.get_name() m

Re: [Python-Dev] bogus comment in Python.h

2008-06-11 Thread Gregory P. Smith
On Tue, Jun 10, 2008 at 10:13 AM, Doug Evans <[EMAIL PROTECTED]> wrote: > I spent a bit of time trying to figure out what's going on here > (was getting errors regarding missing uintptr_t while trying to compile > an external module with Python 2.4). > pyport.h now includes stdint.h but can we fix

Re: [Python-Dev] Have been sick, am behind on mail, let me know if there's anything urgent for me

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 11, 2008, at 1:58 PM, Benjamin Peterson wrote: On Wed, Jun 11, 2008 at 12:54 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: http://bugs.python.org/issue2997 Guido's approved the patch. Please go ahead and apply it. If no one gets to it

Re: [Python-Dev] Have been sick, am behind on mail, let me know if there's anything urgent for me

2008-06-11 Thread Benjamin Peterson
On Wed, Jun 11, 2008 at 12:54 PM, Barry Warsaw <[EMAIL PROTECTED]> wrote: >> >> http://bugs.python.org/issue2997 > > Guido's approved the patch. Please go ahead and apply it. If no one gets > to it before tonight, I'll put it in beta 1 if it applies cleanly. I'm going to handle it. -- Cheers,

Re: [Python-Dev] Have been sick, am behind on mail, let me know if there's anything urgent for me

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 11, 2008, at 1:15 AM, Stefan Behnel wrote: Guido van Rossum wrote: anything someone really needs me to look at ASAP (e.g. a BDFL decision affecting the impending beta release) please send me an email This seems to require a BDFL decision

Re: [Python-Dev] update_wrapper should preserve staticmet hod behavior

2008-06-11 Thread Antoine Pitrou
Calvin Spealman socialserve.com> writes: > Traceback (most recent call last): >File "", line 1, in >File "", line 3, in A >File "", line 5, in d >File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/functools.py", line 33, in update_wrapper > setattr(wrap

Re: [Python-Dev] update_wrapper should preserve staticmethod behavior

2008-06-11 Thread Guido van Rossum
Please submit a fix to the issue tracker at bugs.python.org if you care about this. On Wed, Jun 11, 2008 at 7:06 AM, Calvin Spealman <[EMAIL PROTECTED]> wrote: > I'd like to make a claim about the following example, that update_wrapper > should be improved to preserve the behavior of known, built-

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 11, 2008, at 1:02 PM, Guido van Rossum wrote: On Wed, Jun 11, 2008 at 4:35 AM, Barry Warsaw <[EMAIL PROTECTED]> wrote: So I had planned to do a bunch of work last night looking at the release blocker issues, but nature intervened. A bunch

Re: [Python-Dev] Have been sick, am behind on mail, let me know if there's anything urgent for me

2008-06-11 Thread Guido van Rossum
On Wed, Jun 11, 2008 at 5:59 AM, Nick Coghlan <[EMAIL PROTECTED]> wrote: >> http://bugs.python.org/issue643841 >> >> It's a long bug thread, but needs a decision. > > I just added a couple of messages at the end that recap the more recent > discussions (the early responses to the issue are *really*

Re: [Python-Dev] Have been sick, am behind on mail, let me know if there's anything urgent for me

2008-06-11 Thread Guido van Rossum
On Tue, Jun 10, 2008 at 10:15 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote: > This seems to require a BDFL decision: > > http://bugs.python.org/issue2997 > > Executive Summary: PyNumberMethods has been changed on py3k back in 2006 with > the nb_divide removal, so it's now incompatible with Py2. But

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread Guido van Rossum
On Wed, Jun 11, 2008 at 7:32 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: > There are two things I'd like to get in to 3.0: > > * .transform()/.untransform() methods (this is mostly done, just need > to add the methods to PyUnicode, PyBytes and PyByteArray) I'm +0 on this. It is very minor synt

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread Guido van Rossum
On Wed, Jun 11, 2008 at 4:35 AM, Barry Warsaw <[EMAIL PROTECTED]> wrote: > So I had planned to do a bunch of work last night looking at the release > blocker issues, but nature intervened. A bunch of severe thunderstorms > knock out my 'net access until this morning. > > I'll try to find some time

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread M.-A. Lemburg
On 2008-06-11 17:15, Walter Dörwald wrote: M.-A. Lemburg wrote: On 2008-06-11 13:35, Barry Warsaw wrote: So I had planned to do a bunch of work last night looking at the release blocker issues, but nature intervened. A bunch of severe thunderstorms knock out my 'net access until this morning.

Re: [Python-Dev] segfault in struct module

2008-06-11 Thread Gregory P. Smith
On Wed, Jun 11, 2008 at 1:19 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Martin, since you committed 60793 in Feb, any others like this that need > > merging from release25-maint to trunk off the top of your head? > > That's the entire chunk of "Google bug fixes", and yes, all of it needs

Re: [Python-Dev] bug or a feature?

2008-06-11 Thread Phillip J. Eby
At 03:37 AM 6/11/2008 +0200, Maciej Fijalkowski wrote: On Wed, Jun 11, 2008 at 3:36 AM, Scott Dial <[EMAIL PROTECTED]> wrote: > Maciej Fijalkowski wrote: >> >> What do you think about this code: >> >> class A: >> locals()[42] = 98 >> >> Seems people rely on it working. > > I apologize for my ig

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread Georg Brandl
M.-A. Lemburg schrieb: On 2008-06-11 13:35, Barry Warsaw wrote: So I had planned to do a bunch of work last night looking at the release blocker issues, but nature intervened. A bunch of severe thunderstorms knock out my 'net access until this morning. I'll try to find some time during the d

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread Walter Dörwald
M.-A. Lemburg wrote: On 2008-06-11 13:35, Barry Warsaw wrote: So I had planned to do a bunch of work last night looking at the release blocker issues, but nature intervened. A bunch of severe thunderstorms knock out my 'net access until this morning. I'll try to find some time during the day

[Python-Dev] update_wrapper should preserve staticmethod behavior

2008-06-11 Thread Calvin Spealman
I'd like to make a claim about the following example, that update_wrapper should be improved to preserve the behavior of known, built-in decorators. In this case, I'm talking about staticmethod. The order I list here feels natural, but it obviously doesn't work. The only reason it doesn't s

Re: [Python-Dev] [Python-3000] Betas today - I hope

2008-06-11 Thread M.-A. Lemburg
On 2008-06-11 13:35, Barry Warsaw wrote: So I had planned to do a bunch of work last night looking at the release blocker issues, but nature intervened. A bunch of severe thunderstorms knock out my 'net access until this morning. I'll try to find some time during the day to look at the RB iss

Re: [Python-Dev] Have been sick, am behind on mail, let me know if there's anything urgent for me

2008-06-11 Thread Nick Coghlan
Barry Warsaw wrote: On Jun 10, 2008, at 8:07 PM, Guido van Rossum wrote: I've been sick since Saturday and still don't feel up to much. I've collected a severe email backlog going back to June 6th. If there's anything someone really needs me to look at ASAP (e.g. a BDFL decision affecting the i

Re: [Python-Dev] multiprocessing problems

2008-06-11 Thread Jesse Noller
On Wed, Jun 11, 2008 at 8:23 AM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > On Wed, Jun 11, 2008 at 1:32 AM, Georg Brandl <[EMAIL PROTECTED]> wrote: >> Currently, multiprocessing cannot be imported: >> > import multiprocessing >> Traceback (most recent call last): >> File "", line 1, in >

Re: [Python-Dev] multiprocessing problems

2008-06-11 Thread Benjamin Peterson
On Wed, Jun 11, 2008 at 1:32 AM, Georg Brandl <[EMAIL PROTECTED]> wrote: > Currently, multiprocessing cannot be imported: > import multiprocessing > Traceback (most recent call last): > File "", line 1, in > File "/home/gbr/devel/python/Lib/multiprocessing/__init__.py", line 63, in > > imp

Re: [Python-Dev] Have been sick, am behind on mail, let me know if there's anything urgent for me

2008-06-11 Thread Benjamin Peterson
[just ccing python-dev] On Tue, Jun 10, 2008 at 10:17 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > On Tue, Jun 10, 2008 at 10:08 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: >> On Tue, Jun 10, 2008 at 7:19 PM, Benjamin Peterson >> <[EMAIL PROTECTED]> wrote: >>> >>> I think that we should

Re: [Python-Dev] Have been sick, am behind on mail, let me know if there's anything urgent for me

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 10, 2008, at 8:07 PM, Guido van Rossum wrote: I've been sick since Saturday and still don't feel up to much. I've collected a severe email backlog going back to June 6th. If there's anything someone really needs me to look at ASAP (e.g. a BDF

Re: [Python-Dev] Nab those release blockers!

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 9, 2008, at 7:28 AM, Nick Coghlan wrote: Benjamin Peterson wrote: As we approach the planned first betas for 2.6/3.0, my heart sinks when I see the imposing list of 16 release blockers. [1] Luckily, most of the issues have patches that ju

Re: [Python-Dev] Exception.__unicode__ and tp_unicode

2008-06-11 Thread Simon Cross
On Wed, Jun 11, 2008 at 11:34 AM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > 4) Fix PyObject_Unicode to not retrieve __unicode__ from new-style > instances, and instead only look for the method on their types (similar to > the way PyObject_Format looks up the __format__ method). Thanks for the sugg

[Python-Dev] Betas today - I hope

2008-06-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 So I had planned to do a bunch of work last night looking at the release blocker issues, but nature intervened. A bunch of severe thunderstorms knock out my 'net access until this morning. I'll try to find some time during the day to look at th

Re: [Python-Dev] pep8ity __future__

2008-06-11 Thread Nick Coghlan
Guido van Rossum wrote: I don't see it the same way; this is a terribly unimportant API, so let's not mess with it. threading.py is worth fixing (a) because it's so popular, and (b) because some folks insisted that the new multiprocessing module have an API that is as similar as possible to threa

Re: [Python-Dev] bug or a feature?

2008-06-11 Thread Nick Coghlan
Greg Ewing wrote: Maciej Fijalkowski wrote: What do you think about this code: class A: locals()[42] = 98 Seems people rely on it working. Do we consider it part of python language? Modifying the dict returned by locals() is documented as NOT being guaranteed to work, isn't it? Yep - it

Re: [Python-Dev] Have been sick, am behind on mail, let me know if there's anything urgent for me

2008-06-11 Thread Nick Coghlan
Guido van Rossum wrote: All, I've been sick since Saturday and still don't feel up to much. I've collected a severe email backlog going back to June 6th. If there's anything someone really needs me to look at ASAP (e.g. a BDFL decision affecting the impending beta release) please send me an emai

Re: [Python-Dev] Exception.__unicode__ and tp_unicode

2008-06-11 Thread Nick Coghlan
Simon Cross wrote: Originally Python exceptions had no __unicode__ method. In Python 2.5 __unicode__ was added. This led to "unicode(Exception)" failing and so the addition of __unicode__ was reverted [1]. This leaves Python 2.6 in a position where calls to "unicode(Exception(u'\xe1'))" fail as

Re: [Python-Dev] Assignment to None

2008-06-11 Thread Nick Coghlan
Thomas Lee wrote: Martin v. Löwis wrote: In Python 3, None, True, and False are keywords, so clearly, the intended semantics is also the implemented one (and the language description for 2.x needs to be updated/clarified). Interestingly enough, the semantics of True, False and None are diff

Re: [Python-Dev] [Python-3000] Stabilizing the C API of 2.6 and 3.0

2008-06-11 Thread M.-A. Lemburg
On 2008-06-11 05:42, Gregory P. Smith wrote: On Mon, Jun 9, 2008 at 1:44 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: On 2008-06-09 07:20, Gregory P. Smith wrote: On Fri, Jun 6, 2008 at 2:19 AM, M.-A. Lemburg <[EMAIL PROTECTED]> wrote: On 2008-06-03 01:29, Gregory P. Smith wrote: On Mon,

Re: [Python-Dev] segfault in struct module

2008-06-11 Thread Martin v. Löwis
> Martin, since you committed 60793 in Feb, any others like this that need > merging from release25-maint to trunk off the top of your head? That's the entire chunk of "Google bug fixes", and yes, all of it needs to be ported to 2.6 still. I'll look into it, unless you volunteer :-) (it doesn't n