[Patches] [ python-Patches-784231 ] getopt_long_only()

SourceForge.net noreply at sourceforge.net
Fri Nov 7 12:25:14 EST 2003


Patches item #784231, was opened at 2003-08-06 15:25
Message generated for change (Comment added) made by s3a
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=784231&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Souza (s3a)
Assigned to: Nobody/Anonymous (nobody)
Summary: getopt_long_only()

Initial Comment:
A getopt_long_only() implementation for the `getopt'
module.

Note that it has one slight difference from the glibc
version, related to the `-W' behavior, in that it
_really_ treats `-W foo' _as_ `--foo'; therefore, when
`foo' is not a valid long option, this is an error ---
rather than returning the option ('-W', 'foo') as
though `W:' instead of `W;' had been specified.


----------------------------------------------------------------------

>Comment By: Souza (s3a)
Date: 2003-11-07 17:25

Message:
Logged In: YES 
user_id=838988

I shall add a doc/test patch (within some days).


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2003-10-31 13:08

Message:
Logged In: YES 
user_id=21627

I see no harm in adding this function. However, the patch is
incomplete: it lacks changes to Doc/lib/libgetopt.tex. s3a,
can you please provide these changes?

----------------------------------------------------------------------

Comment By: Johannes Gijsbers (jlgijsbers)
Date: 2003-08-28 18:17

Message:
Logged In: YES 
user_id=469548

I'm not sure we want to support this: our new option-parsing
library optparse rejects this behavior (see
http://python.org/doc/current/lib/optparse-terminology.html),
and our gnu_getopt wasn't intended to work exactly like
gnu_getopt (see http://python.org/sf/473512). On the other
hand, your patch seems to work well, although you should add
tests and a documentation patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=784231&group_id=5470



More information about the Patches mailing list