Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Neil Toronto
Phillip J. Eby wrote: > At 07:43 PM 12/5/2007 -0700, Neil Toronto wrote: >> FWIW, I like it. Though the hash should really incorporate the hash of >> the type name as well as the attribute's so that sometype.method calling >> othertype.method doesn't invalidate the cache. Locality makes the global

Re: [Python-Dev] Slow tests involving bsddb - timeout

2007-12-05 Thread skip
Guido> I think I've seen this too when running the bsddb3 unittest. I Guido> think it's caused by a previous test ending badly and leaving Guido> junk behind that the test suite doesn't properly remove before Guido> starting. But I don't recall the details. Thanks, that at least g

Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Phillip J. Eby
At 07:43 PM 12/5/2007 -0700, Neil Toronto wrote: >Phillip J. Eby wrote: > > At 10:48 PM 12/5/2007 +0100, Georg Brandl wrote: > >> Neil Toronto schrieb: > >>> So Jim and PJE finally convinced me to do it the right way. :) Thanks > >>> guys - it turned out very nice. > >> How does this relate to Armi

Re: [Python-Dev] Py3k code freeze imminent; 3.0a2 release Friday

2007-12-05 Thread Guido van Rossum
I've built and tested the latest py3k from scratch on Ubuntu, Fedora 7, OSX 10.4 and OSX 10.5, and found no issues. So the code freeze is a fact. Don't check anything into the py3k branch unless I tell you to. Please file high-priority bugs and assign them to me if you think you've found a showsto

Re: [Python-Dev] Does anyone care enough about asyncore and asynchat to help adapt their APIs for Py3k?

2007-12-05 Thread Guido van Rossum
On Dec 5, 2007 6:34 PM, Daniel Arbuckle <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > The asyncore and asynchat modules are in a difficult position when it > > comes to Python 3000. None of the core developers use it or > > particularly care about it (AFAIK), and the API has problems bec

Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Neil Toronto
Phillip J. Eby wrote: > At 10:48 PM 12/5/2007 +0100, Georg Brandl wrote: >> Neil Toronto schrieb: >>> So Jim and PJE finally convinced me to do it the right way. :) Thanks >>> guys - it turned out very nice. >> How does this relate to Armin Rigo's method cache patch? >> >> (http://bugs.python.org/i

Re: [Python-Dev] Does anyone care enough about asyncore and asynchat to help adapt their APIs for Py3k?

2007-12-05 Thread Daniel Arbuckle
Guido van Rossum wrote: > The asyncore and asynchat modules are in a difficult position when it > comes to Python 3000. None of the core developers use it or > particularly care about it (AFAIK), and the API has problems because > it wasn't written to deal with bytes vs. unicode. E.g. in > http://b

Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Raymond Hettinger
> Hm... [EMAIL PROTECTED] bounced. I wonder what's going on there.. I'm now in an EWT spin-off company. The new email address is [EMAIL PROTECTED] Also, I frequently check the [EMAIL PROTECTED] account too. Raymond ___ Python-Dev mailing list Python

Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Raymond Hettinger
> I never even saw that one. I'm hoping Raymond will have another look. Great. Will review it this week. Raymond ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/

[Python-Dev] Py3k code freeze imminent; 3.0a2 release Friday

2007-12-05 Thread Guido van Rossum
I'm planning to freeze the py3k branch in 2-3 hours, some time after/around 8pm PST (midnight UTC). If someone wants to do another svnmerge from the trunk please do it before then -- though we're nearly current so I don't mind not having the last few changes merged into this release (it's only Ray

Re: [Python-Dev] Slow tests involving bsddb - timeout

2007-12-05 Thread Guido van Rossum
I think I've seen this too when running the bsddb3 unittest. I think it's caused by a previous test ending badly and leaving junk behind that the test suite doesn't properly remove before starting. But I don't recall the details. --Guido On Dec 5, 2007 5:24 PM, Gregory P. Smith <[EMAIL PROTECTED]

Re: [Python-Dev] Slow tests involving bsddb - timeout

2007-12-05 Thread Gregory P. Smith
I'd expect 4.5 to work fine but I don't know why you're getting such a strange error, i've never seen that. fwiw i suggest people avoid berkeleydb 4.6 for now. On 12/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I noticed that test_anydbm and test_bsddb seemed to hang, so I -x'd them. >

Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Guido van Rossum
Hm... [EMAIL PROTECTED] bounced. I wonder what's going on there... On Dec 5, 2007 4:11 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Dec 5, 2007 4:08 PM, Kevin Jacobs <[EMAIL PROTECTED]> > > <[EMAIL PROTECTED]> wrote: > > On Dec 5, 2007 5:50 PM, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > >

Re: [Python-Dev] Does anyone care enough about asyncore and asynchat to help adapt their APIs for Py3k?

2007-12-05 Thread Guido van Rossum
On Dec 5, 2007 12:54 PM, Gary Herron <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > > The asyncore and asynchat modules are in a difficult position when it > > comes to Python 3000. None of the core developers use it or > > particularly care about it (AFAIK), and the API has problems becaus

Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Guido van Rossum
On Dec 5, 2007 4:08 PM, Kevin Jacobs <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > On Dec 5, 2007 5:50 PM, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > > At 10:48 PM 12/5/2007 +0100, Georg Brandl wrote: > > >Neil Toronto schrieb: > > > > So Jim and PJE finally convinced me to do it the right way.

Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Kevin Jacobs <[EMAIL PROTECTED]>
On Dec 5, 2007 5:50 PM, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 10:48 PM 12/5/2007 +0100, Georg Brandl wrote: > >Neil Toronto schrieb: > > > So Jim and PJE finally convinced me to do it the right way. :) Thanks > > > guys - it turned out very nice. > > > >How does this relate to Armin Rigo'

Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Phillip J. Eby
At 10:48 PM 12/5/2007 +0100, Georg Brandl wrote: >Neil Toronto schrieb: > > So Jim and PJE finally convinced me to do it the right way. :) Thanks > > guys - it turned out very nice. > >How does this relate to Armin Rigo's method cache patch? > >(http://bugs.python.org/issue1685986) Interesting. A

Re: [Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Georg Brandl
Neil Toronto schrieb: > So Jim and PJE finally convinced me to do it the right way. :) Thanks > guys - it turned out very nice. How does this relate to Armin Rigo's method cache patch? (http://bugs.python.org/issue1685986) Georg ___ Python-Dev mailin

[Python-Dev] PATCH: attribute lookup caching for 2.6

2007-12-05 Thread Neil Toronto
So Jim and PJE finally convinced me to do it the right way. :) Thanks guys - it turned out very nice. http://bugs.python.org/issue1560 http://spreadsheets.google.com/ccc?key=pHIJrYc_pnIUpTm6QSG2gZg&hl=en_US It caches type/metatype attribute lookups, including missing attributes. Summary of the

Re: [Python-Dev] Does anyone care enough about asyncore and asynchat to help adapt their APIs for Py3k?

2007-12-05 Thread Gary Herron
Guido van Rossum wrote: > The asyncore and asynchat modules are in a difficult position when it > comes to Python 3000. None of the core developers use it or > particularly care about it (AFAIK), and the API has problems because > it wasn't written to deal with bytes vs. unicode. E.g. in > http://b

Re: [Python-Dev] Mac _OSA extension doesn't build on Leopard

2007-12-05 Thread Ronald Oussoren
On 5 Dec, 2007, at 21:25, Guido van Rossum wrote: > How about this: delete them in 2.6 (3.0 will follow after a merge); in > 2.5.2, put them inside an #if or #ifdef. Bonus points if you can use a > condition that's true on 10.4 and false on 10.5, but always false is > okay with me too, as long as

Re: [Python-Dev] Does anyone care enough about asyncore and asynchat to help adapt their APIs for Py3k?

2007-12-05 Thread Giampaolo Rodola'
On 5 Dic, 20:27, Bill Janssen <[EMAIL PROTECTED]> wrote: > > Good to know there are users. > > And I use Medusa, which is built on top of asyncore. > > Bill +1. I use asyncore/asynchat modules in a public project of mine. ___ Python-Dev mailing list Pyth

Re: [Python-Dev] Mac _OSA extension doesn't build on Leopard

2007-12-05 Thread Guido van Rossum
How about this: delete them in 2.6 (3.0 will follow after a merge); in 2.5.2, put them inside an #if or #ifdef. Bonus points if you can use a condition that's true on 10.4 and false on 10.5, but always false is okay with me too, as long as there's a comment explaining it. --Guido On Dec 5, 2007 1

Re: [Python-Dev] Mac _OSA extension doesn't build on Leopard

2007-12-05 Thread Ronald Oussoren
On 5 Dec, 2007, at 17:56, Guido van Rossum wrote: > Thanks! The sooner the better given that tonight (PST) I plan to do > the code freeze for the 3.0a2 release, and Anthony is also making > noises about 2.5.2 again. I'm working on it right now. I would like a pronouncement on a backward incomp

Re: [Python-Dev] Does anyone care enough about asyncore and asynchat to help adapt their APIs for Py3k?

2007-12-05 Thread Bill Janssen
> Good to know there are users. And I use Medusa, which is built on top of asyncore. Bill ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-de

Re: [Python-Dev] New Standard Library Module

2007-12-05 Thread Oleg Broytmann
On Wed, Dec 05, 2007 at 06:17:34PM +, Michael Foord wrote: > Can I suggest a new module for the standard library: 'antigravity.py'. A friend of mine (the person who has suggested "raise without arguments") recommends implementing it in two phases. The first should be from __future__ import

Re: [Python-Dev] Does anyone care enough about asyncore and asynchat to help adapt their APIs for Py3k?

2007-12-05 Thread Guido van Rossum
On Dec 5, 2007 10:04 AM, Josiah Carlson <[EMAIL PROTECTED]> wrote: > On Dec 5, 2007 9:19 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > The asyncore and asynchat modules are in a difficult position when it > > comes to Python 3000. None of the core developers use it or > > particularly care ab

[Python-Dev] New Standard Library Module

2007-12-05 Thread Michael Foord
Hello all, Can I suggest a new module for the standard library: 'antigravity.py'. Perhaps it could display a particular image on import... Michael http://www.manning.com/foord ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/ma

[Python-Dev] Does anyone care enough about asyncore and asynchat to help adapt their APIs for Py3k?

2007-12-05 Thread Guido van Rossum
The asyncore and asynchat modules are in a difficult position when it comes to Python 3000. None of the core developers use it or particularly care about it (AFAIK), and the API has problems because it wasn't written to deal with bytes vs. unicode. E.g. in http://bugs.python.org/issue1067, Thomas s

Re: [Python-Dev] Mac _OSA extension doesn't build on Leopard

2007-12-05 Thread Guido van Rossum
Thanks! The sooner the better given that tonight (PST) I plan to do the code freeze for the 3.0a2 release, and Anthony is also making noises about 2.5.2 again. --Guido On Dec 4, 2007 11:19 PM, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > > On 4 Dec, 2007, at 22:49, Guido van Rossum wrote: > > > O