Message416173
> This is unfortunate as there is a use-case for such trickery: if the method of a class A are only used to be grafted onto another class B (monkey patching), A.__classcell__ should be set to B so that super() works as expected.
Would you elaborate your use case?
Would bpo-47143 "Add functools.copy_class() which updates closures" solve your use case? |
|
Date |
User |
Action |
Args |
2022-03-28 15:15:12 | vstinner | set | recipients:
+ vstinner, douglas-raillard-arm |
2022-03-28 15:15:12 | vstinner | set | messageid: <1648480512.71.0.101196525096.issue47144@roundup.psfhosted.org> |
2022-03-28 15:15:12 | vstinner | link | issue47144 messages |
2022-03-28 15:15:12 | vstinner | create | |
|