[issue16160] subclassing types.SimpleNamespace does not work

Eric Snow report at bugs.python.org
Wed Oct 10 07:04:32 CEST 2012


Eric Snow added the comment:

Here's a patch that fixes subclass support.  It was supposed to work in the first place.  Guess I had tunnel vision at the time.

The fix is essentially a copy of the code in dict_new() in Objects/dictobject.c.  I left out the part about releasing GC if the type is not a subclass.

Note: see #15022, #15004, and #15003 for other things SimpleNamespace is missing.  I can get those done if it would be meaningful to you.

----------
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file27512/issue16160.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16160>
_______________________________________


More information about the Python-bugs-list mailing list