Python style questions
Dick Streefland
dick.streefland at tasking.com
Fri Mar 16 10:49:05 EST 2001
cobrien at Radix.Net (Cary O'Brien) wrote:
| 4. I need to change things like "88aa99bb" (hex string) into integers. Should I
|
| a. use expr("0x"+s)
| b. not use such things
| c. ???
c. use string.atoi(s, 16), or for Python >= 2.0, the builtin int(s, 16).
--
Dick Streefland //// TASKING Software BV
dick.streefland at tasking.com (@ @) http://www.tasking.com
--------------------------------oOO--(_)--OOo---------------------------
More information about the Python-list
mailing list