Hi again ! You can forget about this problem, it was not related to Python, my CRichEditCtrl messed up the string with some \r\n at the end of some lines, and the Python parser did not like this at all. Mikael