SEC: UNCLASSIFIED RE: [Python-au] String Casting
Ogawa, Taro MR
Taro.Ogawa at defence.gov.au
Tue Mar 29 04:35:38 CEST 2005
The simplest solution is to just eval the string ...
mystr = r'\x7E\x0D\x0A'
mystr = eval("'%s'"%x)
-T.
----
Taro Ogawa
Staff Officer (Record of Training and Employment)
Record of Training and Employment Office
Naval Personnel and Training Centre - Canberra
CP4-2-161
DEPARTMENT OF DEFENCE
CANBERRA ACT 2612
Phone: (02) 6266 4535
Fax: (02) 6266 2185
Email: Taro.Ogawa at defence.gov.au
IMPORTANT: This e-mail remains the property of the Australian Defence
Organisation and is subject to the jurisdiction of section 70 of the Crimes
Act 1914. If you have received this e-mail in error, you are requested to
contact the sender and delete the e-mail
More information about the python-au
mailing list