Re: [Python-Dev] segfault in struct module

2008-06-11 Thread Gregory P. Smith
On Tue, Jun 10, 2008 at 9:04 AM, Jean-Paul Calderone [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]:~$ ~/Projects/python/trunk/python Python 2.6a3+ (trunk:63964, Jun 5 2008, 16:49:12) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type help, copyright, credits or license for more

[Python-Dev] multiprocessing problems

2008-06-11 Thread Georg Brandl
Currently, multiprocessing cannot be imported: import multiprocessing Traceback (most recent call last): File stdin, line 1, in module File /home/gbr/devel/python/Lib/multiprocessing/__init__.py, line 63, in module import _multiprocessing AttributeError: 'module' object has no attribute

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 need

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, Jun

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

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

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

[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

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

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

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

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 accept Antoine's

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 stdin, line 1, in module File

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 stdin, line 1, in module File /home/gbr/devel/python/Lib/multiprocessing/__init__.py, line 63, in module

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

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

[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

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

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

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 ignorance, but who?

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 to be

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

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

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 there

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* old...)

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] 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-in

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

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

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

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: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] 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 up

[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()

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 these be

[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

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 returned

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

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

2008-06-11 Thread Antoine Pitrou
Calvin Spealman ironfroggy at 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

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

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

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 would

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 ironfroggy at 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_

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 deliberate.

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

[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] 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 locally on OS

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] 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 track |

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__, then the AddOns

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 be committed 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 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/stable/

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:

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 Rossum (home

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 object

[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