eftsung / pygr

Automatically exported from code.google.com/p/pygr
0 stars 0 forks source link

megatest failure: cannot delete from dict #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
See groups discussion:

http://groups.google.com/group/pygr-dev/browse_thread/thread/123a4a6b92d7abe8

Briefly, this is a pyrex bug related to an optimization for C integers when
indexing maps; the two proposed workarounds are

a) use d.__delitem__(intkey) instead of del d[intkey]

b) change the intkey to no longer be a C integer

I'm agnostic on which one of these to go with.

--titus

Original issue reported on code.google.com by the.good...@gmail.com on 25 Oct 2008 at 1:49

GoogleCodeExporter commented 8 years ago
Patch using the __delitem__ fix attached.

Original comment by the.good...@gmail.com on 25 Oct 2008 at 6:36

Attachments:

GoogleCodeExporter commented 8 years ago
I followed Titus' suggestion of changing targetID from a cdef int to a regular 
Python
object.

Original comment by cjlee...@gmail.com on 10 Dec 2008 at 9:22

GoogleCodeExporter commented 8 years ago

Original comment by mare...@gmail.com on 21 Feb 2009 at 2:06

GoogleCodeExporter commented 8 years ago
This is resolved both by our code fix and also by our new requirement for Pyrex 
>=
0.9.8.  

Original comment by cjlee...@gmail.com on 5 Mar 2009 at 12:16