commit | b8690fbc951fd937b2c3306da374e0f2d45088a6 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Tue Jun 29 15:49:35 1999 +0000 |
committer | Fred Drake <fdrake@acm.org> | Tue Jun 29 15:49:35 1999 +0000 |
tree | 247ac700e8d0103a36e808017b60e31275f6b388 | |
parent | 9e0b6229f64fed74720f86a1d774824f20d46f24 [diff] |
Define NotANumber as a subclass of ValueError when using class-based exceptions. When raising NotANumber, pass the string that failed as the exception value.