[Python-Dev] builtin_id() returns negative numbers

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 17 03:27:09 CET 2005


Richard Brodie wrote:
> 
> Otherwise, unless I misunderstand integer unification, one would
> just have to strike the distinction between, say, %d and %u.

Couldn't that be done anyway? The distinction really only
makes sense in C, where there's no way of knowing whether
the value is signed or unsigned otherwise. In Python the
value itself knows whether it's signed or not.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list