Jeff Allen added the comment:
0xff0000ff *is* a long. Are you perhaps comparing with Python 3?
>python
Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> 0xff0000ff
4278190335L
>>> hex(0xff0000ff)
'0xff0000ffL'
>>> format(0xff0000ff, "#x")
'0xff0000ff'
>>>
----------
nosy: +jeff.allen
_______________________________________
Jython tracker <report@bugs.jython.org>
<http://bugs.jython.org/issue2138>
_______________________________________