[Python-Dev] Warning framework
Moshe Zadka <email@example.com>
Mon, 6 Nov 2000 11:45:21 +0200 (IST)
On Sun, 5 Nov 2000, Guido van Rossum wrote:
> - The file must be None or a shell matching pattern, e.g. "*foo";
> the ".py" suffix is optional; a partial pathname may be given too.
> So "foo/bar" matches "/usr/lib/python2.0/foo/bar.py" but also
> "/home/guido/libp/tralala/foo/bar.py". If the file is None or "*"
> the filter applies regardless of the file.
How about "file" must be None or a callable, and if it's a callable,
it will be called to check whether to print? If I'll want fnmatch,
I know where to find it.
> - The message must be a None or a string. If it is None, the filter
> applies to all messages. The message string may end in "*" to
> match all messages with the given text (up to the "*").
Same remark. If I want re, I know where to find it.
Moshe Zadka <firstname.lastname@example.org> -- 95855124