SEC: UNCLASSIFIED RE: [Python-au] String Casting

Daryl Tester Daryl.Tester at
Tue Mar 29 04:48:07 CEST 2005

Ogawa, Taro MR wrote:

> The simplest solution is to just eval the string	...
> mystr = r'\x7E\x0D\x0A'
> mystr = eval("'%s'"%x)

Good point; that's what the pickle module used to do.

  Daryl Tester,  Software Wrangler and Bit Herder, IOCANE Pty. Ltd.

"Security is like an onion; if I cut one up and jam it in your eye
 you'll know all about it." -- Conversations with Colleagues.

More information about the python-au mailing list