[program-l] Python, Passing a parameter as int instead of STR when using the CMD modual?
- From: Al Puzzuoli <alpuzz@xxxxxxxxx>
- To: Program L <program-l@xxxxxxxxxxxxx>
- Date: Tue, 23 Oct 2012 18:02:29 -0400
I've begun playing with Python's CMD module, and I now have a
functioning command line interface to my program. I was initially
perplexed though as I was seeing odd errors when executing many of my
methods. Long story short, I realized that this was due to the fact that
CMD passes parameters in as strings, and my functions expected ints.
It's really not a big deal, I can just convert to int within each
method, but it seems there should be a more elegant way to deal with this.
Thanks,
Al
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
Other related posts:
- » [program-l] Python, Passing a parameter as int instead of STR when using the CMD modual? - Al Puzzuoli
- » [program-l] Re: Python, Passing a parameter as int instead of STR when using the CMD modual?- Jim
- » [program-l] Re: Python, Passing a parameter as int instead of STR when using the CMD modual?- Al Puzzuoli
- » [program-l] Re: Python, Passing a parameter as int instead of STR when using the CMD modual?- R Dinger
- » [program-l] Re: Python, Passing a parameter as int instead of STR when using the CMD modual?- Al Puzzuoli
- » [program-l] Re: Python, Passing a parameter as int instead of STR when using the CMD modual?- Jacob Kruger
- » [program-l] Re: Python, Passing a parameter as int instead of STR when using the CMD modual?- Homme, James
- » [program-l] Re: Python, Passing a parameter as int instead of STR when using the CMD modual?- Corbett, James
- » [program-l] Re: Python, Passing a parameter as int instead of STR when using the CMD modual?- R Dinger