Message207479
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. |
|
Date |
User |
Action |
Args |
2014-01-06 20:51:24 | larry | set | recipients:
+ larry, barry, jkloth, serhiy.storchaka |
2014-01-06 20:51:24 | larry | set | messageid: <1389041484.38.0.91142615227.issue20144@psf.upfronthosting.co.za> |
2014-01-06 20:51:24 | larry | link | issue20144 messages |
2014-01-06 20:51:24 | larry | create | |
|