CR+LF problem

Manuel Ruiz mruiz at safa.es
Thu Jun 20 07:33:55 EDT 2002


Hi,

------------------------
.
char * txt = "print 123\r\n";
result = PyRun_Simple( txt, Py_file_input, PyDict_New(), NULL );
.
-----------------------

this code fails to exec txt, I got a SyntaxError exception,
however I if save to file the statement "print 123\r\n" and try to run
it ussing python interprete (version 2.2.1) It run fine.

Can anyone tell me anything about this rare behaviour

Regards
Manuel Ruiz



More information about the Python-list mailing list