]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Contribution from Gerrit Holl:
authorGuido van Rossum <guido@python.org>
Tue, 21 Dec 1999 22:38:40 +0000 (22:38 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 21 Dec 1999 22:38:40 +0000 (22:38 +0000)
commit80c33e562ddcc0af4eed6708aa30603972e62cfc
tree14c703ada90eee7d2230ab1439fa515cd74463db
parentb9bdfc6a230f846a1cd1c681def83cf04d357587
Contribution from Gerrit Holl:

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.]
Lib/getopt.py