CEPort: I Need help with compile.c bug

Brad Clements bkc at Murkworks.com
Sun Dec 30 11:27:19 EST 2001


Sorry to post here, but I'm trying to figure out where in the 2.2 code to
look to solve this problem.

I'm porting the release22-maint CVS checkout to CE 3.0

Seems to work okay, except that many of the regression tests fail because
the CE port is casting numbers to long somewhere... so numeric output has L
at end.

I'm looking for a suggestion where to look in the code. It's on input, not
output, that the problem is occuring. I'm looking at the diffs and nothing
seems to stick out. Thanks for any suggestions..

Here's an example on CE 3.0

>>> import dis
>>> def a(): x = 1
>>> dis.dis(a)
         0L SET_LINENO              1L

         3L SET_LINENO              1L
         6L LOAD_CONST              1L (1L)
         9L STORE_FAST              0L (x)
        12L LOAD_CONST              0L (None)
        15L RETURN_VALUE

>>> x = 1
>>> type(x)
<type 'long'>
>>>

On Python 2.1 for Windows, I get:

>>> def a():
...    x = 1
...
>>> dis.dis(a)
          0 SET_LINENO               1

          3 SET_LINENO               2
          6 LOAD_CONST               1 (1)
          9 STORE_FAST               0 (x)
         12 LOAD_CONST               0 (None)
         15 RETURN_VALUE

>>> x = 1
>>> type(x)
<type 'int'>


--
Brad Clements, DevNet Sysop 5
Developer Network Sysop Team






-----=  Posted via Newsfeeds.Com, Uncensored Usenet News  =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
 Check out our new Unlimited Server. No Download or Time Limits!
-----==  Over 80,000 Newsgroups - 19 Different Servers!  ==-----



More information about the Python-list mailing list