This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients georg.brandl, larry
Date 2014-01-12.21:11:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389561108.74.0.0249800725928.issue20228@psf.upfronthosting.co.za>
In-reply-to
Content
As per Georg's request (and hacks in other places), Argument Clinic should have support for special methods.  To wit:

__init__ should be required to be an instance method.  Clinic should suppress its methoddef #define.

__new__ should be required to be a class method.  Its C function name should have the __new__ stripped off, and by convention its first argument should be "PyTypeObject *type".  Clinic should suppress its methoddef #define.

All other dunder-methods which have special slots in the PyTypeObject structure should be rejected by Argument Clinic.  (Their arguments are pre-parsed, and they don't have docstrings... what would Clinic do for them?)  Obviously generic dunder-methods ("__getstate__", "__sizeof__") are still fine.
History
Date User Action Args
2014-01-12 21:11:48larrysetrecipients: + larry, georg.brandl
2014-01-12 21:11:48larrysetmessageid: <1389561108.74.0.0249800725928.issue20228@psf.upfronthosting.co.za>
2014-01-12 21:11:48larrylinkissue20228 messages
2014-01-12 21:11:48larrycreate