is there a problem on this simple code
Peter Hansen
peter at engcorp.com
Sun Mar 13 10:46:52 EST 2005
Bengt Richter wrote:
> Sorry for jumping in with a largely irrelevant comment. I didn't look
> at the code, just sought to illustrate the 6/18 thing further, in a kneejerk reaction.
> Though BTW FWIW the visual sequence of glyphs representing the data was more a str output
> than repr, I guess:
>
> >>> repr("C\x01\x02\x10'\x83")
> '"C\\x01\\x02\\x10\'\\x83"'
> >>> str("C\x01\x02\x10'\x83")
> "C\x01\x02\x10'\x83"
Actually, both of those have an additional repr() call
courtesy of the Python interactive console. The output
of str() on that string is unprintable, but the above
representation has already been repr()ed by Python for
consumption by fragile hyoo-mans...
-Peter
More information about the Python-list
mailing list