homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: argparse: Namespace can contain critical characters
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder: argparse: positional arguments containing - in name not handled well
View: 15125
Assigned To: Nosy List: deleted250130
Priority: normal Keywords:

Created on 2013年05月27日 22:25 by deleted250130, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
args.py deleted250130, 2013年05月27日 22:25 Example script
Messages (2)
msg190157 - (view) Author: (deleted250130) Date: 2013年05月27日 22:25
Positional arguments which have no dest attribute doesn't replace any - with _. In the attachments is an example script which demonstrate this. The output looks like this:
sworddragon@ubuntu:~$ ./args.py foo
Namespace(foo-bar2='foo', foo_bar1=None)
msg190160 - (view) Author: (deleted250130) Date: 2013年05月27日 23:11
I have found another report about this: http://bugs.python.org/issue15125 
History
Date User Action Args
2022年04月11日 14:57:46adminsetgithub: 62274
2013年05月28日 00:14:10r.david.murraysetsuperseder: argparse: positional arguments containing - in name not handled well
2013年05月27日 23:12:35deleted250130settype: behavior
2013年05月27日 23:11:43deleted250130setstatus: open -> closed
resolution: duplicate
messages: + msg190160
2013年05月27日 22:25:16deleted250130create

AltStyle によって変換されたページ (->オリジナル) /