[Python-Dev] A new warning category?

Steven D'Aprano steve at pearwood.info
Thu Oct 14 12:33:34 CEST 2010


On Thu, 14 Oct 2010 08:25:39 pm Antoine Pitrou wrote:
> Hello,
>
> In the http://bugs.python.org/issue10093 discussion, I proposed to
> add a specific warning category for unclosed files. The rationale is
> that these warnings will happen in destructors and therefore
> filtering by line number and filename doesn't make sense. So a new
> category would be useful in order to allow defining specific rules.

Sounds like a reasonable suggestion to me.

> Do you think it would go against the moratorium?

It's not clear to me one way or the other, but I suspect yes.


-- 
Steven D'Aprano


More information about the Python-Dev mailing list