Message249473
FWIW: I still think that allowing to change .__class__ on instances of static types if wrong and should be undone. If we want to make this a feature of the language we should have a PEP and the associated discussion to be able to judge and document the possible consequences of such a change. This ticket is the wrong place for such a discussion.
Regarding you module object change: Why don't you propose a change on the object itself instead of trying to monkey patch it via a mod.__class__ replacement ? E.g. by defining a hook in the object to set which then permits whatever modification you'd like to make. |
|
Date |
User |
Action |
Args |
2015-09-01 09:41:41 | lemburg | set | recipients:
+ lemburg, rhettinger, pitrou, larry, benjamin.peterson, njs, Mark.Shannon, eltoder, serhiy.storchaka, Guido.van.Rossum |
2015-09-01 09:41:41 | lemburg | set | messageid: <1441100501.53.0.463001267421.issue24912@psf.upfronthosting.co.za> |
2015-09-01 09:41:41 | lemburg | link | issue24912 messages |
2015-09-01 09:41:41 | lemburg | create | |
|