[Python-Dev] What's New text on future maintenance (original) (raw)
Philip Jenvey pjenvey at underboss.org
Fri May 7 21:26:10 CEST 2010
- Previous message: [Python-Dev] What's New text on future maintenance
- Next message: [Python-Dev] What's New text on future maintenance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 addwarnings.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
- Previous message: [Python-Dev] What's New text on future maintenance
- Next message: [Python-Dev] What's New text on future maintenance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]