Alexander Belopolsky added the comment:

> see how type_new also computes the metaclass from the base classes.

As you can see from my first message, I originally considered 
PyType_FromSpecEx(PyObject *meta, PyType_Spec *spec) without bases.  (In fact I 
was unaware of the recent addition of PyType_FromSpecWithBases.)  Maybe the 
original signature makes more sense than the one in the patch.  Explicitly 
setting a metaclass is most useful for the most basic type. On the other hand, 
a fully general function may eventually replace both PyType_FromSpec and 
PyType_FromSpecWithBases for most uses.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15870>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to