[EMAIL PROTECTED] wrote:
optparse seems to be escaping control characters that I pass as arguments on the command line. Is this a bug? Am I missing something?
you're missing the distinction between the content of a string object, and how the corresponding string literal looks.
>>> x = {'delimiter': '\\t'} >>> x {'delimiter': '\\t'} >>> x["delimiter"] '\\t' >>> print x["delimiter"] \t >>> len(x["delimiter"]) 2 </F> -- http://mail.python.org/mailman/listinfo/python-list