optparse global

Skip Montanaro skip at pobox.com
Mon May 16 16:20:26 EDT 2005


    Ashton> This does not seem to work. I still get the default value
    Ashton> 5007...

Hmmm...  Works for me (Python from CVS):

    % python testme.py 
    5007
    % python testme.py -p 5006
    5006
    % python testme.py -p5006
    5006

The only change from what you posted was to add

    from optparse import OptionParse

to txd.py.

Skip



More information about the Python-list mailing list