[New-bugs-announce] [issue16845] warnings.simplefilter should validate input

Sebastian Berg report at bugs.python.org
Thu Jan 3 01:42:06 CET 2013


New submission from Sebastian Berg:

`warnings.simplefilter` does not validate that the category passed in is actually a class. This means that an invalid category leads to a `TypeError` whenever a warning would otherwise occur due to `issubclass` check failing.

It is a very small thing, but for usability it would be clearer if this was checked right away.

----------
messages: 178867
nosy: seberg
priority: normal
severity: normal
status: open
title: warnings.simplefilter should validate input
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16845>
_______________________________________


More information about the New-bugs-announce mailing list