Re: [Python-3000] PEP 3121 implemented

2008-06-12 Thread Martin v. Löwis
> I saw a talk today in which the presenter was talking about "guaranteed > transfer of ownership" enforced by the language runtime. Essentially, it > was a technique to allow a data structure to be passed from one thread > to another, with a guarantee that there would be no heap pointers under > c

Re: [Python-3000] PEP 3121 implemented

2008-06-12 Thread Stefan Behnel
Hi Martin, Stefan Behnel wrote: >> Martin v. Löwis wrote: >>> I just finished a PEP 3121 implementation > > what's the migration path to write portable code, then? Looking through your complete commit, I realised that it's actually not that hard to work around the API changes by basically provid

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

2008-06-12 Thread Nick Coghlan
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 of severe thunderstorms knock out my 'net access until this morning. I'll try

Re: [Python-3000] No betas today

2008-06-12 Thread Jesse Noller
That's odd - I've been doing all of the mp work on osx 10.5.3 - I'll run the units in a loop today to see if I can catch it. -Jesse On Jun 12, 2008, at 1:00 AM, Barry Warsaw <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Much thanks to Benjamin Peterson and Alexandr

Re: [Python-3000] No betas today

2008-06-12 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 12, 2008, at 7:08 AM, Jesse Noller wrote: That's odd - I've been doing all of the mp work on osx 10.5.3 - I'll run the units in a loop today to see if I can catch it. -Jesse Thanks. It's definitely reproducible on both my Leopard boxes.

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

2008-06-12 Thread Guido van Rossum
[Barry] >>> http://bugs.python.org/issue643841 [Guido] >> I've added a comment. Let me know if anything I said is unclear. On Thu, Jun 12, 2008 at 3:35 AM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > The bugtracker seems to be offline atm - I'll reply there once I can get to > it again (as well as

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

2008-06-12 Thread Nick Coghlan
Guido van Rossum wrote: [Barry] http://bugs.python.org/issue643841 [Guido] I've added a comment. Let me know if anything I said is unclear. On Thu, Jun 12, 2008 at 3:35 AM, Nick Coghlan <[EMAIL PROTECTED]> wrote: The bugtracker seems to be offline atm - I'll reply there once I can get to i

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

2008-06-12 Thread Nick Coghlan
Michael Foord wrote: Guido van Rossum wrote: Whether they'll care about this issue of course depends on whether they need overloaded operators and other special delegations to be delegated transparently. We'll have to see how important this is. New-style classes have been around and recommended

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

2008-06-12 Thread Walter Dörwald
M.-A. Lemburg wrote: 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 acce

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

2008-06-12 Thread Antoine Pitrou
Hello all, > Whether they'll care about this issue of course depends on whether > they need overloaded operators and other special delegations to be > delegated transparently. Perhaps it may happen more implicitly than people think. Especially for methods like __bool__, __str__, __iter__... Afte

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

2008-06-12 Thread M.-A. Lemburg
On 2008-06-12 16:59, Walter Dörwald wrote: M.-A. Lemburg wrote: .transform() and .untransform() use the codecs to apply same-type conversions. They do apply type checks to make sure that the codec does indeed return the same type. E.g. text.transform('xml-escape') or data.transform('base64').

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

2008-06-12 Thread Guido van Rossum
[-python-dev] [Guido] >> Whether they'll care about this issue of course depends on whether >> they need overloaded operators and other special delegations to be >> delegated transparently. We'll have to see how important this is. >> New-style classes have been around and recommended for a long ti

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

2008-06-12 Thread Jim Jewett
On 6/12/08, Nick Coghlan <[EMAIL PROTECTED]> wrote: > documentation patch for the language reference ... > following categories: ... > 2. Method lookup MAY bypass __getattribute__, shadowing the attribute in > the instance dictionary MAY have ill effects. (slots such as __enter__ and > __exit__

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

2008-06-12 Thread Georg Brandl
Nick Coghlan schrieb: 2. Method lookup MAY bypass __getattribute__, shadowing the attribute in the instance dictionary MAY have ill effects. (slots such as __enter__ and __exit__ that are looked up via normal attribute lookup in CPython will fit into this category) I would argue that the __e

Re: [Python-3000] PEP 3121 implemented

2008-06-12 Thread Martin v. Löwis
> Was it necessary to remove Py_InitModule4() for this change? We use that in > Cython, so this breaks building extension module in current Py3. Yes: the new module API takes a number of additional function pointers, which can't be passed in through Py_InitModule4. While the change indeed systema

Re: [Python-3000] PEP 3121 implemented

2008-06-12 Thread Martin v. Löwis
> So, next question: what's the migration path to write portable code, then? Up > to this change, we supported every Python version starting from 2.3, including > 3.0alpha5, and it would be nice to continue to do so with 3.0 final. I would split out the main body of the initialization into a separ

Re: [Python-3000] PEP 3121 implemented

2008-06-12 Thread Martin v. Löwis
> Just to mention it, I actually like the new API a lot, and we'll build upon > that to provide better module cleanup support in later versions. That's > something that we were missing for a while already. Thanks. That actually needs proof in reality, as all core modules currently only have the mi

Re: [Python-3000] PEP 3121 implemented

2008-06-12 Thread Greg Ewing
Martin v. Löwis wrote: However, _sre relied on the module already being in sys.modules, as it runs Python code in the init function that already imports the module being initialized. This issue also potentially affects all Pyrex and Cython generated modules, which must be free to execute

Re: [Python-3000] [Python-3000-checkins] r64217 - in python/branches/py3k/Lib: bsddb/test/test_associate.py bsddb/test/test_join.py bsddb/test/test_lock.py bsddb/test/test_thread.py idlelib/rpc.py idl

2008-06-12 Thread Guido van Rossum
It's water under the bridge now, but IMO it was too rash to *remove* the old threading API from Py3k, and doubly rash to do so one day before the beta release. Running up to a release (whether alpha, beta or final) we should practice extra restraint, not rush to get things in right before the deadl

Re: [Python-3000] [Python-3000-checkins] r64217 - in python/branches/py3k/Lib: bsddb/test/test_associate.py bsddb/test/test_join.py bsddb/test/test_lock.py bsddb/test/test_thread.py idlelib/rpc.py idl

2008-06-12 Thread Georg Brandl
Guido van Rossum schrieb: It's water under the bridge now, but IMO it was too rash to *remove* the old threading API from Py3k, and doubly rash to do so one day before the beta release. Running up to a release (whether alpha, beta or final) we should practice extra restraint, not rush to get thin