[docs] [issue28437] Documentation for handling of non-type metaclass hints is unclear
Nick Coghlan
report at bugs.python.org
Sun Oct 16 03:49:51 EDT 2016
Nick Coghlan added the comment:
The "used directly as the metaclass" is a reference to https://docs.python.org/3/reference/datamodel.html#creating-the-class-object further down, and specifically the "metaclass(name, bases, namespace, **kwds)" call. It's not saying Python has a way to bypass that instantiation process.
As a result, your code is consistently getting to that step just fine, but *that call* is throwing an exception.
Hence my comment earlier that there's a case to be made that we should be better indicating where we were in the type creation process when the metaclass resolution failed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28437>
_______________________________________
More information about the docs
mailing list