Serhiy Storchaka added the comment:

The c0d25de5919e changeset consists of three parts:

1) Fixes a bug (disallow an assignment of incompatible __class__ that happens 
to have the same __basesize__).
2) Allows __class__ assignment for module type.
3) Allows __class__ assignment for other types, in particular non-heap builtin 
types.

I think we should keep (1) and disallow (3). (2) is questionable and I for 
disallowing it too (special cases aren't special enough to break the rules). It 
is too little time left to 3.5 release, we will have more time to discuss this 
for 3.6.

Nataniel's new patch without special casing ModuleType would be good to me.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24912>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to