creating a hex value

John Machin sjmachin at lexicon.net
Wed Jun 1 17:20:59 EDT 2005


wittempj at hotmail.com wrote:
> What about
> 
> martin at lijnbaansgracht:~$ python
> Python 2.3.5 (#2, May  4 2005, 08:51:39)
> [GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> 
>>>>hex(21)
> 
> '0x15'
> 
> 
 >>> len('0x15')
4

Quadruple sheeeeeeeeeeeeeesh.




More information about the Python-list mailing list