> 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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to