sys module - argv, but no argc ??

Titus Brown t at chabry.caltech.edu
Fri Aug 2 09:29:26 CEST 2002


In article <8d3e714e.0208012253.73022f97 at posting.google.com>,
Tony C <cappy2112 at yahoo.com> wrote:
>I've imported the sys module, and I'm SHOCKED that there is no way to
>access the argument count.
>
>The docs talk about accessing argv, but nothing about the argument
>count.
>Was something omitted from the docs ?
>
>How do Python users get around this ?

len(sys.argv)

--titus



More information about the Python-list mailing list