NewBie - GetOpts

Terry Reedy tjreedy at udel.edu
Tue Sep 28 15:21:54 EDT 1999


>So far, I have imported getopt
>
>optlist=getopt.getopt(sys.argv[1:],'f:')
>
>which reads the switch and the argument into a data structure from
>which I can't actually access (since I don't even know what kind of
>structure - a sequence? a list? a tuple? an array / vector?)(what is a
>tuple?)

For answering such questions without recourse to the manual,
use type().  IE,

print type(optlist)

TJR





More information about the Python-list mailing list