[Python-Dev] builtin_id() returns negative numbers

2005-02-14 Thread Troels Walsted Hansen
Hi all, The Python binding in libxml2 uses the following code for __repr__(): class xmlNode(xmlCore): def __init__(self, _obj=None): self._o = None xmlCore.__init__(self, _obj=_obj) def __repr__(self): return xmlNode (%s) object at 0x%x % (self.name, id (self)) With

Re: [Python-Dev] builtin_id() returns negative numbers

2005-02-14 Thread Tim Peters
[Troels Walsted Hansen] The Python binding in libxml2 uses the following code for __repr__(): class xmlNode(xmlCore): def __init__(self, _obj=None): self._o = None xmlCore.__init__(self, _obj=_obj) def __repr__(self): return xmlNode (%s) object at 0x%x %

Re: [Python-Dev] builtin_id() returns negative numbers

2005-02-14 Thread James Y Knight
On Feb 14, 2005, at 10:41 AM, Tim Peters wrote: Wouldn't it be more elegant to make builtin_id() return an unsigned long integer? I think so. This is the function ZODB 3.3 uses, BTW: def positive_id(obj): Return id(obj) as a non-negative integer. [...] I think it'd be nice to change it, too.

[Python-Dev] Ann: PyPy Sprint before PYCON 2005 in Washington

2005-02-14 Thread Christian Tismer
PyPy Sprint before PYCON 2005 in Washington --- In the four days from 19th March till 22th March (inclusive) the PyPy team will host a sprint on their new Python-in-Python implementation. The PyPy project was granted funding by the European Union as part