[Python-Dev] Using logging in the stdlib and its unit tests

Georg Brandl g.brandl at gmx.net
Wed Dec 8 11:48:16 CET 2010


Am 08.12.2010 10:42, schrieb Antoine Pitrou:

>> But errors don't pass silently, do they?  The usual way to present errors
>> is still by raising exceptions.
> 
> Or logging them.
> http://docs.python.org/dev/library/logging.html#logging.Logger.exception

Yes, thank you I'm aware of the exception() method.  But hopefully standard
library modules don't use it to report exceptions to code that uses them?

Georg



More information about the Python-Dev mailing list