]> granicus.if.org Git - python/commit
Define NotANumber as a subclass of ValueError when using class-based
authorFred Drake <fdrake@acm.org>
Tue, 29 Jun 1999 15:49:35 +0000 (15:49 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 29 Jun 1999 15:49:35 +0000 (15:49 +0000)
commitb8690fbc951fd937b2c3306da374e0f2d45088a6
tree247ac700e8d0103a36e808017b60e31275f6b388
parent9e0b6229f64fed74720f86a1d774824f20d46f24
Define NotANumber as a subclass of ValueError when using class-based
exceptions.

When raising NotANumber, pass the string that failed as the exception
value.
Lib/fpformat.py