sys module - argv, but no argc ??

Hamish Lawson hamish_lawson at yahoo.co.uk
Fri Aug 2 15:52:51 CEST 2002


> I've imported the sys module, and I'm SHOCKED that there is no way to
> access the argument count.

len(argv)

argv is a Python list - like Python lists generally, you can resize
it, find out its current size, and do all sorts of things to it.


Hamish Lawson



More information about the Python-list mailing list