[ZCM] [ZC] 1777/ 3 Assign "ExtensionClass delattr raises KeyError"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed May 11 18:35:05 EDT 2005
Issue #1777 Update (Assign) "ExtensionClass delattr raises KeyError"
Status Accepted, Zope/bug low
To followup, visit:
http://www.zope.org/Collectors/Zope/1777
==============================================================
= Assign - Entry #3 by tseaver on May 11, 2005 6:35 pm
Supporters added: jim; removed: tim_one
________________________________________
= Comment - Entry #2 by tim_one on May 11, 2005 5:31 pm
The chance that I can make time to look at this in ZODB 3.2 is approximately 0%.
ExtensionClass isn't part of ZODB 3.4, so the chance that I'll look at this in Zope 2.8 is something less than 0% <0.4 wink>.
________________________________________
= Request - Entry #1 by tseaver on May 11, 2005 4:58 pm
Status: Pending => Accepted
Supporters added: tim_one
The two setattr implementations in ExtensionClass.c
('subclass_simple_setattro' and 'subclass_simple_setattr')
don't check / convert errors returned by PyDict_DelItem, leading to::
>>> from Persistence import Persistent
>>> class Foo(Persistent):
... pass
...
>>> foo = Foo()
>>> del foo.nonesuch
Traceback (most recent call last):
File "<stdin>", line 1, in ?
KeyError: 'nonesuch'
==============================================================
More information about the Zope-Collector-Monitor
mailing list