Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 24818:31d2860089e6 legacy-trunk
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.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Wed, 14 Aug 2002 15:51:29 +0000 |
| parents | ab63af3ec349 |
| children | cf5928fab108 |
line wrap: on
line diff
--- a/Python/compile.c Wed Aug 14 15:46:02 2002 +0000 +++ b/Python/compile.c Wed Aug 14 15:51:29 2002 +0000 @@ -1158,7 +1158,7 @@ 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",
