Larry Hastings added the comment:

> Note that tp_new is a static method, not a class method (the type
> creation machinery takes care of passing in the right class rather
> than the descriptor machinery)

I admit I didn't know that.

But from a practical perspective, surely you agree that tp_new walks and quacks 
like a class method?  That I, as an author of an extension type, should think 
of it as such?

----------

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

Reply via email to