Escapeism
Leonhard Vogt
leonhard.vogt at gmx.ch
Sat Sep 30 16:50:18 EDT 2006
> But there is some ambiguity due to the the fact that applying '\7' to
> rawform() yields r'\a' and not r'\7'. So one needs more specification
> for disambiguation using e.g. an extra parameter.
>
>>> '\a'=='\7'
True
The two are actually the same thing, so how could a function decide
whether to return '\\a' or '\\7'.
It's like asking the following:
>>> c = 04
>>> print rawform(c)
04
>>> c = 4
>>> print rawform(c)
4
which is obviously not possible, neither of any use imho.
Leonhard
More information about the Python-list
mailing list