This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: yet another svn head compiler change
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nascheme Nosy List: logistix, mwh, nascheme
Priority: normal Keywords:

Created on 2006-03-02 06:39 by mwh, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg27646 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2006-03-02 06:39
This one seems stangely familiar:

$ python2.4
Python 2.4.1 (#2, Mar 31 2005, 00:05:10) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> -2147483648
-2147483648
>>> 
$ ~/Source/python/build/python.exe 
Python 2.5a0 (trunk:42764M, Mar  1 2006, 18:21:57) 
[GCC 4.0.1 (Apple Computer, Inc. build 5247)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> -2147483648
-2147483648L
msg27647 - (view) Author: Grant Olson (logistix) Date: 2006-03-06 23:47
Logged In: YES 
user_id=699438

It looks like the parser is seeing this as unary minus
applied to 2147483648 instead of the literal "-2147483648"
msg27648 - (view) Author: Grant Olson (logistix) Date: 2006-03-10 02:33
Logged In: YES 
user_id=699438

Patch 1446922 posted.
msg27649 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2006-07-09 21:21
Logged In: YES 
user_id=35752

Fixed in SVN rev 50495.  I did the folding in the CST->AST
phase, similar to how it was done in the old compiler.
History
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 42965
2006-03-02 06:39:20mwhcreate