REPOST: Re: CEPort: I Need help with compile.c bug

Michael Hudson mwh at python.net
Sun Dec 30 22:41:14 CET 2001


"Brad Clements" <bkc at Murkworks.com> writes:

> 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..

Well, I'm baffled too.  My only suggestions are for more things to try.

> 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'>
> >>>

Try these?

ord('a')
type(ord('a'))
int("1")
type(int("1"))
eval("1")
type(eval("1"))

Cheers,
M.

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool1-nwblwi.newsops.execpc.com!newsfeeds.sol.net!priapus.visi.com!news-out.visi.com!hermes.visi.com!newspeer.monmouth.com!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Michael Hudson <mwh at python.net>
Newsgroups: comp.lang.python
Subject: cmsg cancel <lkheq88jye.fsf at elios.maths.bris.ac.uk>
Control: cancel <lkheq88jye.fsf at elios.maths.bris.ac.uk>
Date: Mon, 31 Dec 2001 01:44:51 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.lkheq88jye.fsf at elios.maths.bris.ac.uk>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009774066 27193 211.57.49.2 (31 Dec 2001 04:47:46 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 04:47:46 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list