determining bytes read from a file.

Matt Nordhoff mnordhoff at mattnordhoff.com
Thu Dec 13 07:45:10 EST 2007


vineeth wrote:
> parser.add_option("-b", "--bytes", dest="bytes")

This is an aside, but if you pass 'type="int"' to add_option, optparse
will automatically convert it to an int, and (I think), give a more
useful error message on failure.
-- 



More information about the Python-list mailing list