This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, methane, skrah, vstinner, xiang.zhang
Date 2016-09-13.13:44:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473774261.86.0.260884808309.issue28120@psf.upfronthosting.co.za>
In-reply-to
Content
Good work! This example is a bit easier to understand:

class Cls:
    pass

a = Cls()
a.x = 1
a.y = 2

b = Cls()
b.x = 1
print(hasattr(b, 'y'))
print(b.__dict__.pop('y', None))


$ ./python d.py 
False
python: Objects/dictobject.c:1743: _PyDict_Pop: Assertion `ix >= 0' failed.
Aborted (core dumped)
History
Date User Action Args
2016-09-13 13:44:21christian.heimessetrecipients: + christian.heimes, vstinner, methane, skrah, xiang.zhang
2016-09-13 13:44:21christian.heimessetmessageid: <1473774261.86.0.260884808309.issue28120@psf.upfronthosting.co.za>
2016-09-13 13:44:21christian.heimeslinkissue28120 messages
2016-09-13 13:44:21christian.heimescreate