[prev in list] [next in list] [prev in thread] [next in thread]
List: pypy-dev
Subject: Re: [pypy-dev] Saving and reloading JIT optimizations
From: Armin Rigo <arigo () tunes ! org>
Date: 2011-08-20 9:39:41
Message-ID: CAMSv6X2ZgZ+W2RZx1XH9u2HmbgVRTv3TM6cyM6xKD92jq60djQ () mail ! gmail ! com
[Download RAW message or body]
Hi Zooko,
On Fri, Aug 19, 2011 at 5:38 PM, Zooko O'Whielacronx <zooko@zooko.com> wrote:
> conservative method of determining if two classes are the same. For
> example: if they have identical Python source code and their
> superclasses are the same (in this sense).
This cannot be something you can rely on. I can define Python classes
that have identical Python source code and superclasses, yet are
totally different. For example,
class A(object): pass
A.foo = 42
A1 = A
class A(object): pass
A.foo = 43
A2 = A
So no, there is no way at all to make this idea work in general; you
can only do hacks that hopefully don't break too often. I am not
interested :-)
A bientôt,
Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic