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 barry, brett.cannon, gvanrossum, larry, meador.inge, ncoghlan, skrah, tim.peters, yselivanov, zach.ware
Date 2014-01-23.14:27:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390487296.18.0.206093110411.issue20189@psf.upfronthosting.co.za>
In-reply-to
Content
At last, my refreshed patch.  Changes from the previous patch:

* Had another mildly bright idea.  The name "PyTypeObject *cls"
  is a holdover from < Python 2.2 days, before the merging of classes
  and types.  Now they're both the same thing and the official name
  in Python is "type".  So the self_converter uses the word "type".

* Added __text_signature__ to PyType_Type.

* Removed __text_signature__ from PyMemberDescr_Type, as it's not
  callable.  (What was I thinking!)

* Hand-coded signatures for default docstrings for slots.

* Hand-coded signature for type and object.  (The one for type isn't
  correct, I know, we'll get there.)

* clinic.py now generates self/module/type parameters for most
  text signatures; these are then stripped off if the function is
  bound.

* Ensured that inspect.signature raises ValueError if it can't
  generate a signature for a callable object.

* Added unit tests.

* Suppress the null "self" parameter for METH_STATIC calls in the impl.

* If you have an empty docstring for __new__ or __init__, it suppresses
  the static variables completely.

* Functions with a self converter use the type of self for the
  parsing function.  (Except __new__ and __init__, which must conform
  to using PyObject *.)

Boy am I emotionally ready to check this thing in.
History
Date User Action Args
2014-01-23 14:28:17larrysetrecipients: + larry, gvanrossum, tim.peters, barry, brett.cannon, ncoghlan, skrah, meador.inge, zach.ware, yselivanov
2014-01-23 14:28:16larrysetmessageid: <1390487296.18.0.206093110411.issue20189@psf.upfronthosting.co.za>
2014-01-23 14:28:16larrylinkissue20189 messages
2014-01-23 14:28:15larrycreate