Author nnorwitz
Recipients
Date 2006-03-20.07:39:41
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=33168

Thanks!

Unfortunately, this patch leaves the long in co_consts:

>>> def foo():
...   x = -9223372036854775808
...
>>> foo.func_code.co_consts
(None, 9223372036854775808L, -9223372036854775808)

This is a 64-bit system.  On 2.4, there is only sys.minint:

Python 2.4.2 (#1, Oct 30 2005, 21:35:48)
>>> def foo():
...   x = -9223372036854775808
...
>>> foo.func_code.co_consts
(None, -9223372036854775808)

Can you revise the patch to fix this?  I cleaned up some
things.  Attached is an updated version I was using.
History
Date User Action Args
2007-08-23 15:46:49adminlinkissue1446922 messages
2007-08-23 15:46:49admincreate