Re: [Python-3000] gc, timestamping

2007-01-26 Thread Kristján V. Jónsson
Well, the gc linked list of objects is so volatile that doubt that it is simple to create an iterator over it. And the semantics of such an iterator would be hard to define, with code running while a sequence of live objects is being traversed. I am still pursuing my "creation hook" idea, pri

Re: [Python-3000] Pre-peps on raise and except changes

2007-01-26 Thread Collin Winter
On 1/26/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > Collin Winter wrote: > > Does this language work for you? > > > > 2. ``raise E`` (with a single argument) is used to raise a new > >exception. This form has two sub-variants: ``E`` may be either an > >instance of ``BaseException`` [#pep352

Re: [Python-3000] gc, timestamping

2007-01-26 Thread Greg Ewing
Guido van Rossum wrote: > On 1/24/07, Jim Jewett <[EMAIL PROTECTED]> wrote: > >> (on python-dev) Kristján V. Jónsson wrote: >> >>> We have been using gc.get_objects() but it has several problems: >>> 1) ... results in a list so long that it often kills the system. >> >> In Py3K, should this also r

Re: [Python-3000] Pre-peps on raise and except changes

2007-01-26 Thread Greg Ewing
Jim Jewett wrote: > it even clears up the pathological > case of an object which is both a subclass and an instance of > BaseException. Is that possible??? -- Greg ___ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listi

Re: [Python-3000] Pre-peps on raise and except changes

2007-01-26 Thread Greg Ewing
Collin Winter wrote: > Does this language work for you? > > 2. ``raise E`` (with a single argument) is used to raise a new >exception. This form has two sub-variants: ``E`` may be either an >instance of ``BaseException`` [#pep352]_ or a subclass of >``BaseException``. That wording do

Re: [Python-3000] Pre-peps on raise and except changes

2007-01-26 Thread Greg Ewing
Collin Winter wrote: > On 1/26/07, Greg Ewing <[EMAIL PROTECTED]> wrote: >> That wording doesn't seem to cover the case where >> E is an instance of a subclass of BaseException. > class A: pass class B(A): pass isinstance(B(), A) Technically I suppose it's right, but it doesn't so

Re: [Python-3000] Pre-peps on raise and except changes

2007-01-26 Thread Collin Winter
On 1/26/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > Collin Winter wrote: > > On 1/26/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > > >> That wording doesn't seem to cover the case where > >> E is an instance of a subclass of BaseException. > > > class A: pass > class B(A): pass > isins