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.

Author Phillip.M.Feldman@gmail.com
Recipients Phillip.M.Feldman, Phillip.M.Feldman@gmail.com, bethard
Date 2011-12-16.01:27:58
SpamBayes Score 1.2968341e-08
Marked as misclassified No
Message-id <CAB2ViTbgxJ8pYzXoO4WWTHJOeGbjKRzjYdTH5QToKg2X8q_SoQ@mail.gmail.com>
In-reply-to <1323944554.43.0.11090378328.issue13584@psf.upfronthosting.co.za>
Content
Hello Steven,

I'm embarrassed to report that I can't reproduce the problem.  The
input line is parsed correctly if I enclose the string 'Demo IO' in
double quotes.  It is parsed incorrectly if I enclose it in single
quotes, but it looks as though this is the fault of the Windows shell,
and not Python.

My apologies.

Phillip

On Thu, Dec 15, 2011 at 2:22 AM, Steven Bethard <report@bugs.python.org> wrote:
>
> Steven Bethard <steven.bethard@gmail.com> added the comment:
>
> Can you submit some example code that shows this? I can't reproduce this with:
>
> ---------- temp.py ----------
> import argparse
>
> parser = argparse.ArgumentParser()
> parser.add_argument("--ng", action="store_true")
> parser.add_argument("--INP")
> print(parser.parse_args())
> ------------------------------
>
> $ python temp.py --ng --INP="Demo IO"
> Namespace(INP='Demo IO', ng=True)
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue13584>
> _______________________________________
History
Date User Action Args
2011-12-16 01:28:00Phillip.M.Feldman@gmail.comsetrecipients: + Phillip.M.Feldman@gmail.com, bethard, Phillip.M.Feldman
2011-12-16 01:28:00Phillip.M.Feldman@gmail.comlinkissue13584 messages
2011-12-16 01:27:58Phillip.M.Feldman@gmail.comcreate