range of int() type.

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Aug 23 18:16:06 EDT 2006


At Wednesday 23/8/2006 18:53, KraftDiner wrote:

> > |>> import sys
> > |>> sys.maxint
> > 2147483647
> >
>
>So what type / class should one use to represent a 16 bit integers
>(signed or unsigned)?

Plain int.
If you need the overflow at 32K/64K, try: x & 0xFFFF



Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list