determining bytes read from a file.
Matt Nordhoff
mnordhoff at mattnordhoff.com
Thu Dec 13 07:45:10 EST 2007
More information about the Python-list mailing list
Thu Dec 13 07:45:10 EST 2007
- Previous message (by thread): determining bytes read from a file.
- Next message (by thread): determining bytes read from a file.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
--
- Previous message (by thread): determining bytes read from a file.
- Next message (by thread): determining bytes read from a file.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list