[issue24089] argparse crashes with AssertionError

2018-06-08 Thread miss-islington


miss-islington  added the comment:


New changeset 4e6bd247aa955056626bf0cf8dc1c65a587b871f by Miss Islington (bot) 
in branch '2.7':
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
https://github.com/python/cpython/commit/4e6bd247aa955056626bf0cf8dc1c65a587b871f


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2018-06-08 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7186

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2018-06-08 Thread miss-islington


miss-islington  added the comment:


New changeset 842985f6c70484ed7b8fc30d0bc05aec73236a98 by Miss Islington (bot) 
in branch '3.7':
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
https://github.com/python/cpython/commit/842985f6c70484ed7b8fc30d0bc05aec73236a98


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2018-06-08 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7167

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2018-06-08 Thread miss-islington


miss-islington  added the comment:


New changeset 376c272d68cca0975ff0be3d12abf5f67da342d7 by Miss Islington (bot) 
in branch '3.6':
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
https://github.com/python/cpython/commit/376c272d68cca0975ff0be3d12abf5f67da342d7


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2018-06-08 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7161

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2018-06-08 Thread miss-islington


Change by miss-islington :


--
pull_requests: +7157

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2018-06-08 Thread Nick Coghlan


Nick Coghlan  added the comment:


New changeset 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b by Nick Coghlan (wim 
glenn) in branch 'master':
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
https://github.com/python/cpython/commit/66f02aa32f1e4adb9f24cf186f8c495399d5ce9b


--
nosy: +ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2015-05-05 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - argparse assertion failure with brackets in metavars

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24089
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2015-05-02 Thread paul j3

paul j3 added the comment:

It's the spaces and/or brackets in the metavar, along with a usage line that is 
long enough to wrap, that is raising this error.

It's a known problem.

http://bugs.python.org/issue11874

--
nosy: +paul.j3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24089
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24089] argparse crashes with AssertionError

2015-04-30 Thread SpaceOne

New submission from SpaceOne:

Just add an argument with metavar='[PROTOCOL://]HOST[:PORT]' ([...] twice in 
the string) causes the following traceback:

Traceback (most recent call last):
  File curl.py, line 182, in module
arguments = parser.parse_args()
  File /usr/lib/python2.7/argparse.py, line 1701, in parse_args
args, argv = self.parse_known_args(args, namespace)
  File /usr/lib/python2.7/argparse.py, line 1733, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
  File /usr/lib/python2.7/argparse.py, line 1939, in _parse_known_args
start_index = consume_optional(start_index)
  File /usr/lib/python2.7/argparse.py, line 1879, in consume_optional
take_action(action, args, option_string)
  File /usr/lib/python2.7/argparse.py, line 1807, in take_action
action(self, namespace, argument_values, option_string)
  File /usr/lib/python2.7/argparse.py, line 996, in __call__
parser.print_help()
  File /usr/lib/python2.7/argparse.py, line 2340, in print_help
self._print_message(self.format_help(), file)
  File /usr/lib/python2.7/argparse.py, line 2314, in format_help
return formatter.format_help()
  File /usr/lib/python2.7/argparse.py, line 281, in format_help
help = self._root_section.format_help()
  File /usr/lib/python2.7/argparse.py, line 211, in format_help
func(*args)
  File /usr/lib/python2.7/argparse.py, line 332, in _format_usage
assert ' '.join(opt_parts) == opt_usage
AssertionError

--
components: Distutils
messages: 242299
nosy: dstufft, eric.araujo, spaceone
priority: normal
severity: normal
status: open
title: argparse crashes with AssertionError
type: crash
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24089
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com