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 Chris.Bruner
Recipients Chris.Bruner, docs@python, paul.j3, r.david.murray
Date 2014-07-25.17:29:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <D7370F46-3EA7-4AA1-BBFA-CA901B14A09C@gmail.com>
In-reply-to <1406259723.26.0.0398775751208.issue22049@psf.upfronthosting.co.za>
Content
Yes, I know. My function just sees '1', but I think it should see '1 2 3' so that it can figure out what to do. That's impossible (well, impossible without saving state between calls) when it sees the arguments piecemeal. 

Sent from my iPhone

> On Jul 24, 2014, at 9:42 PM, paul j3 <report@bugs.python.org> wrote:
> 
> 
> paul j3 added the comment:
> 
> Note that 
> 
>    '-t 1 2 3'.split()
> 
> becomes
> 
>    ['-t', '1', '2', '3']
> 
> Your 'type' function sees those 3 strings individually.  Try printing 'string' the first thing in your function to see what we mean.
> 
> ----------
> nosy: +paul.j3
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue22049>
> _______________________________________
History
Date User Action Args
2014-07-25 17:29:46Chris.Brunersetrecipients: + Chris.Bruner, r.david.murray, docs@python, paul.j3
2014-07-25 17:29:46Chris.Brunerlinkissue22049 messages
2014-07-25 17:29:45Chris.Brunercreate