optparse question

George Yoshida ml at dynkin.com
Sun Sep 19 00:23:17 CEST 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