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 jkloth, larry, serhiy.storchaka
Date 2014-01-06.18:27:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389032856.9.0.862823317297.issue20144@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is an example of how we could support simple named constants in __text_signature__.  The change to posixmodule.c is just a hack to exercise the code in inspect.Signature; I didn't have a good example handy.

When I apply the patch and run "x.py", I see:
    (path, *, dir_fd=None, follow_symlinks=True, fake=9223372036854775807)

This patch is just an example; I don't propose to check it in in this state.  (We'd still need to modify Argument Clinic to support these named constants, too.)
History
Date User Action Args
2014-01-06 18:27:36larrysetrecipients: + larry, jkloth, serhiy.storchaka
2014-01-06 18:27:36larrysetmessageid: <1389032856.9.0.862823317297.issue20144@psf.upfronthosting.co.za>
2014-01-06 18:27:36larrylinkissue20144 messages
2014-01-06 18:27:36larrycreate