GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Preserving order of options and nonoption arguments in gnu_getopt() · Issue #126390 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementby default GNU
I propose to add support for the missed feature. If the first character of the option string is minus ( For example: >>> s = 'a1 -x a2 a3 a4 --long a5 a6' >>> args = s.split() >>> args ['a1', '-x', 'a2', 'a3', 'a4', '--long', 'a5', 'a6'] >>> optlist, args = getopt.gnu_getopt(args, '-x:', ['long=']) >>> optlist [(None, ['a1']), ('-x', 'a2'), (None, ['a3', 'a4']), ('--long', 'a5')] >>> args ['a6'] I considered also alternative options:
Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |