• Guido van Rossum's avatar
    Contribution from Gerrit Holl: · 80c33e56
    Guido van Rossum yazdı
    This patch changes the string-based exceptions to class-based
    exceptions, so that you can fetch the unknown option as an
    attribute.  As far as I know, it is backward compatible.
    
    [The new exception class is called GetoptError; the name error is an
    alias for compatibility.]
    80c33e56
getopt.py 4.89 KB