On Mon, Dec 11, 2000 at 11:53:37AM -0500, Guido van Rossum wrote: >... > > - The second argument to sys.warn() or PyErr_Warn() can be any class, > > right? > > Almost. It must be derived from __builtin__.Warning. Since you must do "from warnings import warn" before using the warnings, then I think it makes sense to put the Warning classes into the warnings module. (e.g. why increase the size of the builtins?) Cheers, -g -- Greg Stein, http://www.lyra.org/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4