On May 7, 2010, at 9:09 AM, A.M. Kuchling wrote:

>  You can re-enable display of :exc:`DeprecationWarning` messages by
>  running Python with the :option:`-Wdefault` (short form:
>  :option:`-Wd`) switch, or you can add
>  ``warnings.simplefilter('default')`` to your code.

The new PYTHONWARNINGS env var also needs mentioning here, how's about:

You can re-enable display of :exc:`DeprecationWarning` messages by
 either running Python with the :option:`-Wdefault` (short form:
 :option:`-Wd`) switch or by setting the :envvar:`PYTHONWARNINGS`
 environment variable to "default" (or "d") before running Python.
 Python code can also re-enable them by calling
 ``warnings.simplefilter('default')``.


--
Philip Jenvey
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to