Message209060
| Author |
larry |
| Recipients |
barry, brett.cannon, gvanrossum, larry, meador.inge, ncoghlan, skrah, tim.peters, yselivanov, zach.ware |
| Date |
2014年01月24日.10:34:09 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1390559649.29.0.300272436162.issue20189@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> 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? |
|