Message249943
Mark, please calm down. Modules are incredibly simple objects compared to classes -- and yet you can change the __class__ of a class. You can also directly modify the __dict__ of a module. You can shoot yourself in the foot phenomenally this way, but that's not the point. The point is not to violate *internal* constraints of the interpreter. Changing immutable objects was violating such a constraint. Changing a module's __class__ is not. |
|
Date |
User |
Action |
Args |
2015-09-05 22:40:20 | gvanrossum | set | recipients:
+ gvanrossum, lemburg, rhettinger, ncoghlan, pitrou, vstinner, larry, benjamin.peterson, njs, Mark.Shannon, python-dev, eltoder, serhiy.storchaka, Guido.van.Rossum |
2015-09-05 22:40:20 | gvanrossum | set | messageid: <1441492820.0.0.475732507616.issue24912@psf.upfronthosting.co.za> |
2015-09-05 22:40:19 | gvanrossum | link | issue24912 messages |
2015-09-05 22:40:19 | gvanrossum | create | |
|