Message278727
The documentation suggests that you can have a metaclass that does is not the "most derived metaclass" provided you specify one that is not an instance of type. This doesn't work in CPython, so I would suggest fixing the documentation using the text I provided.
After that, it should be clear that there's no reason for "if isinstance(meta, type):" in the code, and the Python code should be restructured.
The point is that these two functions drifted apart somewhere around Python 3, and they need to be brought back together. I only discovered this because it was possible in Python 2 to have a non-type metaclass that is not the most derived metaclass. That has disappeared in CPython 3, except from the documentation and Lib. |
|
Date |
User |
Action |
Args |
2016-10-15 17:49:51 | NeilGirdhar | set | recipients:
+ NeilGirdhar, ncoghlan, docs@python |
2016-10-15 17:49:51 | NeilGirdhar | set | messageid: <1476553791.06.0.388958262018.issue28437@psf.upfronthosting.co.za> |
2016-10-15 17:49:51 | NeilGirdhar | link | issue28437 messages |
2016-10-15 17:49:51 | NeilGirdhar | create | |
|