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, jkloth, larry, serhiy.storchaka
Date 2014-01-06.20:51:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389041484.38.0.91142615227.issue20144@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is a patch supporting simple symbolic constants.  It works from beginning to end--you specify it in the Argument Clinic input and it shows up in the inspect.Signature and uses the constant in the generated C code.

One complication: when using one of these constants, I force you to specify a c_default.  Which is now automatically supported on all converters, as is py_default.

I converted pattern_match in _sre.c as a sample.  I won't check that part of the patch in; it's just to give you an idea of what it looks like for the user.
History
Date User Action Args
2014-01-06 20:51:24larrysetrecipients: + larry, barry, jkloth, serhiy.storchaka
2014-01-06 20:51:24larrysetmessageid: <1389041484.38.0.91142615227.issue20144@psf.upfronthosting.co.za>
2014-01-06 20:51:24larrylinkissue20144 messages
2014-01-06 20:51:24larrycreate