[Python-Dev] Go \x yourself (original) (raw)

Barry A. Warsaw bwarsaw@beopen.com
Thu, 3 Aug 2000 10:25:20 -0400 (EDT)


"TP" == Tim Peters <timone@email.msn.com> writes:

TP> The new rule is the same as Perl uses for \x escapes in -w
TP> mode, except that Python will raise ValueError at compile-time
TP> for an invalid \x escape: an \x escape is of the form

TP>     \xhh

TP> where h is a hex digit.  That's it.

+1