Éric Araujo mer...@netwok.org added the comment:
There is. Someone wanting to help could reply to the question I asked :)
--
type: feature request - behavior
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
wrobell wrob...@pld-linux.org added the comment:
is there a chance to fix this issue?
--
nosy: +wrobell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9338
___
Éric Araujo mer...@netwok.org added the comment:
Patch looks good, thanks! Does it integrate Catherine’s tests?
--
components: +Library (Lib)
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
Daniel Albeseder ko...@gmx.at added the comment:
My attached patch adds the -- between the optionals and the arguments, if
there are optionals which have variable length and at least some positional
argument can be provided.
Patch is for python 3.2 svn revision 86553.
--
nosy: +Kotan
Éric Araujo mer...@netwok.org added the comment:
Looks good to me. Do you want to propose a code patch too, and/or more tests
for non-simple cases?
--
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
Changes by Michael.Elsdörfer mich...@elsdoerfer.info:
--
nosy: +elsdoerfer
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9338
___
___
Catherine Devlin fredv8vi...@liquidid.net added the comment:
Here's a unit test for the simplest cases.
--
keywords: +patch
nosy: +catherine
Added file: http://bugs.python.org/file18328/test_pos_after_var_args.patch
___
Python tracker
New submission from Steven Bethard steven.beth...@gmail.com:
[From the old argparse tracker:
http://code.google.com/p/argparse/issues/detail?id=20]
You can't follow a nargs='+' optional argument with a positional argument:
import argparse
parser = argparse.ArgumentParser(prog='PROG')
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder: - argparse does not accept options taking arguments beginning
with dash (regression from optparse)
___
Steven Bethard steven.beth...@gmail.com added the comment:
This is definitely a different bug from the one you just marked it as a
duplicate of.
--
resolution: duplicate -
stage: committed/rejected - needs patch
status: closed - open
superseder: argparse does not accept options taking
Éric Araujo mer...@netwok.org added the comment:
I read too fast, I’m sorry for that.
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9338
___
11 matches
Mail list logo