Message207463
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.) |
|
Date |
User |
Action |
Args |
2014-01-06 18:27:36 | larry | set | recipients:
+ larry, jkloth, serhiy.storchaka |
2014-01-06 18:27:36 | larry | set | messageid: <1389032856.9.0.862823317297.issue20144@psf.upfronthosting.co.za> |
2014-01-06 18:27:36 | larry | link | issue20144 messages |
2014-01-06 18:27:36 | larry | create | |
|