mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Py3k warnings now automatically include -Qwarn for division.
This commit is contained in:
parent
c8223b09b0
commit
08259e8f25
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,9 @@ What's New in Python 2.7 alpha 1
|
||||||
Core and Builtins
|
Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Running Python with the -3 option now also warns about classic division
|
||||||
|
for ints and longs.
|
||||||
|
|
||||||
- Issue #5260: Long integers now consume less memory: average
|
- Issue #5260: Long integers now consume less memory: average
|
||||||
saving is 2 bytes per long on a 32-bit system and 6 bytes per long
|
saving is 2 bytes per long on a 32-bit system and 6 bytes per long
|
||||||
on a 64-bit system.
|
on a 64-bit system.
|
||||||
|
|
|
@ -317,6 +317,8 @@ Py_Main(int argc, char **argv)
|
||||||
|
|
||||||
case '3':
|
case '3':
|
||||||
Py_Py3kWarningFlag++;
|
Py_Py3kWarningFlag++;
|
||||||
|
if (!Py_DivisionWarningFlag)
|
||||||
|
Py_DivisionWarningFlag = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Q':
|
case 'Q':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue