> I gets to a dict of class circumventing dictproxy. It's yet unclear
> why it segfaults.
The crash as well as the output "1" are both caused because updating
the class dictionary directly doesn't invalidate the method cache.
When the new value for "f" is assigned to the dict, the old "f" gets
gar
> Some comments would be nice. Right now it looks pretty close to
> deliberately obfuscated code (especially with the call to
> gc.get_referrers()).
That call tries to get at the class dictionary, rather then just
the dict_proxy that you get from A.__dict__. There should be
two referrers to thingy
Le mardi 25 janvier 2011 à 20:11 +0200, Maciej Fijalkowski a écrit :
> On Tue, Jan 25, 2011 at 1:26 PM, Antoine Pitrou wrote:
> > On Tue, 25 Jan 2011 01:00:28 +0100 (CET)
> > benjamin.peterson wrote:
> >> Author: benjamin.peterson
> >> Date: Tue Jan 25 01:00:28 2011
> >> New Revision: 88178
> >>
On Tue, Jan 25, 2011 at 1:26 PM, Antoine Pitrou wrote:
> On Tue, 25 Jan 2011 01:00:28 +0100 (CET)
> benjamin.peterson wrote:
>> Author: benjamin.peterson
>> Date: Tue Jan 25 01:00:28 2011
>> New Revision: 88178
>>
>> Log:
>> another pretty crasher served up by pypy
>
> Some comments would be nice
On Tue, 25 Jan 2011 01:00:28 +0100 (CET)
benjamin.peterson wrote:
> Author: benjamin.peterson
> Date: Tue Jan 25 01:00:28 2011
> New Revision: 88178
>
> Log:
> another pretty crasher served up by pypy
Some comments would be nice. Right now it looks pretty close to
deliberately obfuscated code (e