optparse question

George Yoshida ml at dynkin.com
Sat Sep 18 18:23:17 EDT 2004


GMTaglia wrote:

> I think it will be better if only the *exact* option will match, it will
> avoid typing mistakes and/or accidentally wrong matches, imho.
> 

I think this is because getopt module is designed as a pure Python 
implementation of Unix(Linux?) getopt function.

I tested the sample code in C and it handled long options as 
Python does.

George



More information about the Python-list mailing list