creating a hex value

Peter Otten __peter__ at web.de
Thu Jun 2 02:43:52 EDT 2005


John Machin wrote:

>> delim = chr(0x15)
> 
> Ooooh -- a function with a constant arg; I wonder what that evaluates to?
> 
>  >>> chr(0x15)
> '\x15'
> 
> Sheeeesh.

OK, let's double-check that:

>>> chr(0x15)
'The argument is constant -- but not necessarily the /function/.'
>>>

Sheeeesh :-)

Peter




More information about the Python-list mailing list