Message192113
Unfortunately, it's not that simple, as calling type(name, bases, namespace) is *exactly* what a subclass will do as part of creating the type object.
From inside the type implementation, we can't tell the difference between "properly called from the child type" and "improperly called without preparing the namespace first". |
|
Date |
User |
Action |
Args |
2013-07-01 07:35:31 | ncoghlan | set | recipients:
+ ncoghlan, r.david.murray, nikratio, docs@python |
2013-07-01 07:35:31 | ncoghlan | set | messageid: <1372664131.9.0.919052520477.issue18334@psf.upfronthosting.co.za> |
2013-07-01 07:35:31 | ncoghlan | link | issue18334 messages |
2013-07-01 07:35:31 | ncoghlan | create | |
|