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 <rep...@bugs.python.org>
<http://bugs.python.org/issue16160>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to