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

optparse: "1 2 3" should be seen as one string #48570

Closed
akuchling opened this issue Nov 14, 2008 · 4 comments
Closed

optparse: "1 2 3" should be seen as one string #48570

akuchling opened this issue Nov 14, 2008 · 4 comments
Labels
stdlib Python modules in the Lib dir

Comments

@akuchling
Copy link
Member

BPO 4320
Nosy @akuchling, @birkenfeld

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 2010-08-21.23:32:23.463>
created_at = <Date 2008-11-14.00:40:46.436>
labels = ['library']
title = 'optparse: "1 2 3" should be seen as one string'
updated_at = <Date 2010-08-21.23:32:23.461>
user = 'https://github.com/akuchling'

bugs.python.org fields:

activity = <Date 2010-08-21.23:32:23.461>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2010-08-21.23:32:23.463>
closer = 'georg.brandl'
components = ['Library (Lib)']
creation = <Date 2008-11-14.00:40:46.436>
creator = 'akuchling'
dependencies = []
files = []
hgrepos = []
issue_num = 4320
keywords = []
message_count = 4.0
messages = ['75848', '75862', '77284', '114606']
nosy_count = 4.0
nosy_names = ['akuchling', 'georg.brandl', 'draghuram', 'gregg.lind']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue4320'
versions = ['Python 2.7']

@akuchling
Copy link
Member Author

(copied from the Optik bug tracker -- I haven't tried
to replicate this.)

@akuchling akuchling added the stdlib Python modules in the Lib dir label Nov 14, 2008
@draghuram
Copy link
Mannequin

draghuram mannequin commented Nov 14, 2008

I had the same need in my small command line client (that uses Cmd.Cmd)
and I solved it by using shlex.split() instead of regular string split.
I haven't looked at optparse code lately and perhaps it can do the same.

@gregglind
Copy link
Mannequin

gregglind mannequin commented Dec 8, 2008

Can you show an example of this not working? Works fine for me in
2.4/2.5/2.6.

@birkenfeld
Copy link
Member

Closing due to vague report description.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 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

2 participants