Re: [Python-Dev] Traceback object has no __class__?

2010-04-11 Thread Nick Coghlan
Greg Ewing wrote: > I thought type-class unification was supposed to mean > that all objects now have a __class__ attribute. But > traceback objects don't seem to: > > import sys > > try: > raise ValueError > except ValueError: > tb = sys.exc_info()[2] > print tb > print tb.__class__ I'm

[Python-Dev] Traceback object has no __class__?

2010-04-11 Thread Greg Ewing
I thought type-class unification was supposed to mean that all objects now have a __class__ attribute. But traceback objects don't seem to: import sys try: raise ValueError except ValueError: tb = sys.exc_info()[2] print tb print tb.__class__ results in: % python2.6 traceback_class.py

Re: [Python-Dev] "Fixing" the new GIL

2010-04-11 Thread Peter Portante
Nir, Per the POSIX standard, both pthread_cond_wait() and pthread_cond_timedwait() need to be performed in a loop. See the fourth paragraph of the description from: > http://www.opengroup.org/onlinepubs/95399/functions/pthread_cond_timedwait > .html For the Windows side, I think you have a

Re: [Python-Dev] "Fixing" the new GIL

2010-04-11 Thread Nir Aides
Hello all, I would like to kick this discussion back to life with a simplified implementation of the BFS scheduler, designed by the Linux kernel hacker Con Kolivas: http://ck.kolivas.org/patches/bfs/sched-BFS.txt I submitted bfs.patch at http://bugs.python.org/issue7946. It is work in progress bu

Re: [Python-Dev] PEP 3147

2010-04-11 Thread Barry Warsaw
On Apr 11, 2010, at 02:39 AM, Nick Coghlan wrote: >Barry Warsaw wrote: >> I don't have strong feelings about this. I thought it would be handy for >> future Python's to have access to this, but then, without access to previous >> version magic numbers, it probably doesn't help much. And as you s

Re: [Python-Dev] [RELEASED] 2.7 beta 1

2010-04-11 Thread Guido van Rossum
On Sat, Apr 10, 2010 at 11:57 AM, Antoine Pitrou wrote: > Benjamin Peterson python.org> writes: >> >> On behalf of the Python development team, I'm merry to announce the first >> beta >> release of Python 2.7. > > Congratulations, and thanks for your patience :) Congratulations indeed! Let me

Re: [Python-Dev] [RELEASED] 2.7 beta 1

2010-04-11 Thread Lennart Regebro
On Sat, Apr 10, 2010 at 20:52, Benjamin Peterson wrote: > On behalf of the Python development team, I'm merry > to announce the first beta release of Python 2.7. Cool! -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 ___

Re: [Python-Dev] Python-Dev Digest, Vol 81, Issue 31

2010-04-11 Thread Denis Kolodin
On Sun Apr 11 03:23:21 CEST 2010 Terry Reedy wrote: > I believe speculative proposals like this fit better on the python-list or >python-ideas list. I see. Thank you :) Denis Kolodin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.

Re: [Python-Dev] PEP 3147, __cached__, and PyImport_ExecCodeModuleEx()

2010-04-11 Thread Georg Brandl
Am 11.04.2010 00:25, schrieb Barry Warsaw: > On Apr 10, 2010, at 08:28 PM, Georg Brandl wrote: > >>Am 10.04.2010 18:12, schrieb Guido van Rossum: >>> On Sat, Apr 10, 2010 at 8:58 AM, Barry Warsaw wrote: On Apr 09, 2010, at 05:41 PM, Guido van Rossum wrote: >On Fri, Apr 9, 2010 at 3: