mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Added a FutureWarning for constructs that will change semantically in
the future. Changed PEP 237 hex constant warnings from DeprecationWarning to FutureWarning. Updated the documentation.
This commit is contained in:
parent
31d2df5b60
commit
9f00739551
3 changed files with 11 additions and 2 deletions
|
@ -1158,7 +1158,7 @@ parsenumber(struct compiling *co, char *s)
|
|||
x = (long) PyOS_strtoul(s, &end, 0);
|
||||
if (x < 0 && errno == 0) {
|
||||
if (PyErr_WarnExplicit(
|
||||
PyExc_DeprecationWarning,
|
||||
PyExc_FutureWarning,
|
||||
"hex/oct constants > sys.maxint "
|
||||
"will return positive values "
|
||||
"in Python 2.4 and up",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue