Bugs item #1418374, was opened at 2006-01-30 07:43 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1418374&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Parser/Compiler Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: gnupun (gnupun) Assigned to: Nobody/Anonymous (nobody) Summary: PyRun_SimpleString won't parse \\x Initial Comment: I'm trying to use Python 2.4.2 from C on Win XP. The following line of C code generates an error: test.c: PyRun_SimpleString( "s = 'C:\\xyz'\n" ); Output: ValueError: invalid \x escape The error message only occurs if 'x' follows the slashes '\\x'. That is, no other letter causes this problem: PyRun_SimpleString( "s = 'C:\\ayz'\n" ); PyRun_SimpleString( "s = 'C:\\yyz'\n" ); Using forward slashes also prevents the error: PyRun_SimpleString( "s = "C:/xyz'\n" ); // ok ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1418374&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com