Message 166258 - Python tracker (original) (raw)

Here is a patch that corrects the problem (quoted below and attached.) This only corrects the problem when 'PyOS_ReadlineFunctionPointer' is set, e.g. you must 'import readline', otherwise Python will defer to stdin/stdout with 'PyOS_StdioReadline'.

The patch:

--- Python-2.6.8/Parser/tokenizer.c 2012-04-10 11:32:11.000000000 -0400 +++ Python-2.6.8-patched/Parser/tokenizer.c 2012-07-23 19:56:39.645992101 -0400 @@ -805,7 +805,7 @@ return Py_CHARMASK(*tok->cur++); } if (tok->prompt != NULL) {

Kevin Barry