[Python-Dev] Py3k DeprecationWarning in stdlib

Jean-Paul Calderone exarkun at divmod.com
Thu Jun 26 18:01:18 CEST 2008


On Fri, 27 Jun 2008 01:52:18 +1000, Nick Coghlan <ncoghlan at gmail.com> wrote:
>Jean-Paul Calderone wrote:
>>I don't particularly care about the details, I just want some public
>>API for this.  Making warn_explicit public seems better to me, since
>>it was already there in previous versions of Python, and it lets you
>>completely ignore both the filters list and the global registry, but
>>if others would rather make the filters and global registry a part of
>>the public API, that's fine by me as well.
>
>Why do you say warn_explicit isn't public? It's in both the 2.5 and 2.6 API 
>docs for the warnings module.

Brett told me it was private (on this list several weeks or a month or so
ago).  It's also no longer called in 2.6 by the C implementation of the
warning system.

Jean-Paul


More information about the Python-Dev mailing list