optparse with numpy.array?

Johan Ekh ekh.johan at gmail.com
Tue Jan 27 00:44:18 CET 2009


Hi all,
I'm trying to use optparse to process command line parameters given to my
program.
It works as I expect for the types supported by optparse, i.e. int, float,
string etc. but how can I
pass a numpy.array or a list to my program?

I have been searching for it but cannot find a good solution. By the way, I
am a Python newbie
so please be gentle...

Best regards,
Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090127/4604de5a/attachment.html>


More information about the Python-list mailing list