diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-05-23 06:35:32 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-05-23 06:35:32 (GMT) |
commit | 8b2bfbc198c1fe0dcdfd42cc4683879cd712ccfd (patch) | |
tree | 9f3e2eed06cc877197eaadc398fb0bd12f5b9db3 /Include | |
parent | 5f2ba9f2b1d5bd7ce9a6388dc58624403ca54547 (diff) | |
download | cpython-8b2bfbc198c1fe0dcdfd42cc4683879cd712ccfd.zip cpython-8b2bfbc198c1fe0dcdfd42cc4683879cd712ccfd.tar.gz cpython-8b2bfbc198c1fe0dcdfd42cc4683879cd712ccfd.tar.bz2 |
Add -3 option to the interpreter to warn about features that are
deprecated and will be changed/removed in Python 3.0.
This patch is mostly from Anthony. I tweaked some format and added
a little doc.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pydebug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pydebug.h b/Include/pydebug.h index db3b656..3282dc1 100644 --- a/Include/pydebug.h +++ b/Include/pydebug.h @@ -21,6 +21,8 @@ PyAPI_DATA(int) Py_DivisionWarningFlag; on the command line, and is used in 2.2 by ceval.c to make all "/" divisions true divisions (which they will be in 3.0). */ PyAPI_DATA(int) _Py_QnewFlag; +/* Warn about 3.x issues */ +PyAPI_DATA(int) Py_Py3kWarningFlag; /* this is a wrapper around getenv() that pays attention to Py_IgnoreEnvironmentFlag. It should be used for getting variables like |