commit | 80c33e562ddcc0af4eed6708aa30603972e62cfc | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Dec 21 22:38:40 1999 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Dec 21 22:38:40 1999 +0000 |
tree | 14c703ada90eee7d2230ab1439fa515cd74463db | |
parent | b9bdfc6a230f846a1cd1c681def83cf04d357587 [diff] |
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.]