constructing binary backslash-n

Bengt Richter bokr at oz.net
Thu Sep 30 09:29:12 CEST 2004


On Thu, 30 Sep 2004 00:27:17 -0400, Tim Peters <tim.peters at gmail.com> wrote:
[...]
>The only letters that have special meaning after a backslash are:
>
>a b f n r t v x

>
Hm, why aren't they all used by repr? E.g.,

 >>> list('\a\b\f\n\r\t\v\x00')
 ['\x07', '\x08', '\x0c', '\n', '\r', '\t', '\x0b', '\x00']

Regards,
Bengt Richter



More information about the Python-list mailing list