Message34729
| Author |
twouters |
| Recipients |
| Date |
2000年10月30日.17:48:55 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
This patch attempts to do what Tim suggested in the python-dev thread about getopt()'s prototype and the difficulties of it. the 'getopt' implementation as provided in Python/getopt.c is renamed to Py_GetOpt(), the exported variables 'opterr', 'optind' and 'optarg' are prefixed with Py_, and all use in the Python sourcetree is adjusted.
The patch is missing the 'pygetopt.h' include file, though :P I'll resubmit a proper patch later.
There are a couple of issues still open: the name of the getopt.c file, its use of 'fprintf(stderr, ... )', its license, documentation (which this patch lacks) and whether this Py_GetOpt should be an officially exported API at all.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:02:24 | admin | link | issue402170 messages |
| 2007年08月23日 15:02:24 | admin | create |
|