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
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
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
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
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
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
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