Re: [Python-Dev] Issue 18312 "fix" broke buildbots

2013-07-02 Thread David Bolen
"Eric V. Smith" writes: >> http://buildbot.python.org/all/builders/x86%20Tiger%202.7/builds/2030 >> http://buildbot.python.org/all/builders/x86%20Tiger%203.3/builds/742 >> http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/6522 >> http://buildbot.python.org/all/builders/bolen-dmg-3.

Re: [Python-Dev] Hooking into super() attribute resolution

2013-07-02 Thread Guido van Rossum
No time to read the PEP in detail but the motivation sound reasonable. --Guido van Rossum (sent from Android phone) On Jul 2, 2013 4:53 AM, "Ronald Oussoren" wrote: > Hi, > > Below is a very preliminary draft PEP for adding a special method that can > be used to hook into the attribute resolutio

Re: [Python-Dev] Solving the import-deadlock case

2013-07-02 Thread Nick Coghlan
On 3 Jul 2013 04:34, "Pascal Chambon" wrote: > > Hello everyone, > > I'd like to bring your attention to this issue, since it touches the fundamentals of python's import workflow: > http://bugs.python.org/issue17716 > > I've tried to post it on the python-import ML for weeks, but it must still be

Re: [Python-Dev] Solving the import-deadlock case

2013-07-02 Thread Nick Coghlan
On 3 Jul 2013 05:44, "R. David Murray" wrote: > > On Tue, 02 Jul 2013 20:31:48 +0200, Pascal Chambon wrote: > > I agree that a module loading should be, as much as possible, "side > > effects free", and thus shouldn't have temporary errors. But well, in > > practice, module loading is typically t

Re: [Python-Dev] Solving the import-deadlock case

2013-07-02 Thread R. David Murray
On Tue, 02 Jul 2013 20:31:48 +0200, Pascal Chambon wrote: > I agree that a module loading should be, as much as possible, "side > effects free", and thus shouldn't have temporary errors. But well, in > practice, module loading is typically the time where process-wide > initialization are done (

[Python-Dev] Solving the import-deadlock case

2013-07-02 Thread Pascal Chambon
Hello everyone, I'd like to bring your attention to this issue, since it touches the fundamentals of python's import workflow: http://bugs.python.org/issue17716 /I've tried to post it on the python-import ML for weeks, but it must still be blocked somewhere in a moderation queue, so here I co

Re: [Python-Dev] Issue 18312 "fix" broke buildbots

2013-07-02 Thread Eric V. Smith
On 07/02/2013 10:33 AM, R. David Murray wrote: > On Tue, 02 Jul 2013 09:52:56 -0400, "Eric V. Smith" > wrote: >> I'm not sure how my change broke the buildbots, but apparently it did. I >> need to run to a meeting now, but I can roll this back in the next few >> hours. >> >> If someone else wants

Re: [Python-Dev] Issue 18312 "fix" broke buildbots

2013-07-02 Thread R. David Murray
On Tue, 02 Jul 2013 09:52:56 -0400, "Eric V. Smith" wrote: > I'm not sure how my change broke the buildbots, but apparently it did. I > need to run to a meeting now, but I can roll this back in the next few > hours. > > If someone else wants to roll it back before I get to it, feel free. > > Sor

[Python-Dev] Issue 18312 "fix" broke buildbots

2013-07-02 Thread Eric V. Smith
I'm not sure how my change broke the buildbots, but apparently it did. I need to run to a meeting now, but I can roll this back in the next few hours. If someone else wants to roll it back before I get to it, feel free. Sorry about the problem. I tested it locally, I'm not sure how the buildbots

[Python-Dev] Hooking into super() attribute resolution

2013-07-02 Thread Ronald Oussoren
Hi, Below is a very preliminary draft PEP for adding a special method that can be used to hook into the attribute resolution process of the super object. The primary usecase for using this special method are classes that perform custom logic in their __getattribute__ method, where the default b

Re: [Python-Dev] Why are captured parameters also listed in co_varnames?

2013-07-02 Thread Amaury Forgeot d'Arc
2013/7/2 Andrea Griffini > I'm trying to understand how CPython implements closure variable capture > and there is one minor point I can't understand. > > When a local is captured it gets allocated in co_cellvars and is accessed > with (LOAD|STORE)_DEREF, and this is clear. > However when a local

[Python-Dev] Why are captured parameters also listed in co_varnames?

2013-07-02 Thread Andrea Griffini
I'm trying to understand how CPython implements closure variable capture and there is one minor point I can't understand. When a local is captured it gets allocated in co_cellvars and is accessed with (LOAD|STORE)_DEREF, and this is clear. However when a local is coming from a parameter it gets AL