Skip to content
Back to formatted view

Raw Message

Message-ID: <46372CE4.5000801@biostat.ku.dk>
Date: 2007-05-01T12:04:52Z
From: Peter Dalgaard
Subject: integer constants given by hexadecimal notation (PR#9648)
In-Reply-To: <20070501113027.003035DE3C@slim.kubism.ku.dk>

murdoch at stats.uwo.ca wrote:
> On 01/05/2007 7:21 AM, Stephan wrote:
>   
>> Hi,
>>
>>     
>>> 0x10L
>>>       
>> returns: int 0
>>
>> I would expect: int 16?
>> This happens with all integer constants given by hexadecimal notation.
>> It's a bug?
>>     
>
> Certainly looks like one; I've cc'd this to the bug list (but won't be 
> able to look into fixing it).
>
>   
Not happening on Fedora Linux:

 > 0x10L
[1] 16
 > str(0x10L)
 int 16