Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getopt_long_only() #39026

Closed
s3a mannequin opened this issue Aug 6, 2003 · 6 comments
Closed

getopt_long_only() #39026

s3a mannequin opened this issue Aug 6, 2003 · 6 comments
Labels
stdlib Python modules in the Lib dir

Comments

@s3a
Copy link
Mannequin

s3a mannequin commented Aug 6, 2003

BPO 784231
Nosy @loewis
Files
  • patch-longonly: patch for Lib/getopt.py
  • patch-longonly: patching Lib/getopt.py & Doc/lib/libgetopt.tex
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2008-01-25.20:19:12.039>
    created_at = <Date 2003-08-06.15:25:03.000>
    labels = ['library']
    title = 'getopt_long_only()'
    updated_at = <Date 2008-01-25.20:19:12.028>
    user = 'https://bugs.python.org/s3a'

    bugs.python.org fields:

    activity = <Date 2008-01-25.20:19:12.028>
    actor = 'draghuram'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-01-25.20:19:12.039>
    closer = 'draghuram'
    components = ['Library (Lib)']
    creation = <Date 2003-08-06.15:25:03.000>
    creator = 's3a'
    dependencies = []
    files = ['5504', '5505']
    hgrepos = []
    issue_num = 784231
    keywords = ['patch']
    message_count = 6.0
    messages = ['44402', '44403', '44404', '44405', '44406', '61688']
    nosy_count = 4.0
    nosy_names = ['loewis', 'jlgijsbers', 'draghuram', 's3a']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue784231'
    versions = ['Python 2.3']

    @s3a
    Copy link
    Mannequin Author

    s3a mannequin commented Aug 6, 2003

    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.

    @s3a s3a mannequin added stdlib Python modules in the Lib dir labels Aug 6, 2003
    @jlgijsbers
    Copy link
    Mannequin

    jlgijsbers mannequin commented Aug 28, 2003

    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.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 31, 2003

    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?

    @s3a
    Copy link
    Mannequin Author

    s3a mannequin commented Nov 7, 2003

    Logged In: YES
    user_id=838988

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

    @s3a
    Copy link
    Mannequin Author

    s3a mannequin commented Nov 13, 2003

    Logged In: YES
    user_id=838988

    The patch now includes changes to Doc/lib/libgetopt.tex.

    @draghuram
    Copy link
    Mannequin

    draghuram mannequin commented Jan 25, 2008

    I see no chance of this being accepted now that optparse is entrenched.
    Please do reopen if some one thinks otherwise.

    @draghuram draghuram mannequin closed this as completed Jan 25, 2008
    @draghuram draghuram mannequin closed this as completed Jan 25, 2008
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants