Message278729
"As a result of this, *both* implementations include a conditional check for a more derived metaclass in their namespace preparation logic, as well as an unconditional call to that metaclass derivation logic from type_new if the calculated metaclass is either type itself, or a subclass that calls up to super().__new__."
I don't see why that's necessary. Either you should have the check in one place, or else have two equivalent checks. Right now, the Python library is confusingly checking a subset of cases (when isinstance(meta, type)). I suggest that you have the Python library check the entire set of cases so that the raised exception shows up in the right place. |
|
Date |
User |
Action |
Args |
2016-10-15 17:56:05 | NeilGirdhar | set | recipients:
+ NeilGirdhar, ncoghlan, docs@python |
2016-10-15 17:56:05 | NeilGirdhar | set | messageid: <1476554165.54.0.318433844064.issue28437@psf.upfronthosting.co.za> |
2016-10-15 17:56:05 | NeilGirdhar | link | issue28437 messages |
2016-10-15 17:56:05 | NeilGirdhar | create | |
|