[issue9060] Python/dup2.c doesn't compile on (at least) newlib

2010-06-23 Thread Torne Wuff
New submission from Torne Wuff : On systems without dup2(), Python tries to compile its own from Python/dup2.c, but this file refers to close() without including unistd.h. This causes it to not compile with newlib (and possibly other C libraries, presumably it was relying on fcntl.h

[issue6650] sre_parse contains a confusing generic error message

2010-04-09 Thread Torne Wuff
Torne Wuff added the comment: I suspect a better message could be invented, but I'm not sure what :) -- ___ Python tracker <http://bugs.python.org/i

[issue6650] sre_parse contains a confusing generic error message

2009-08-05 Thread Torne Wuff
New submission from Torne Wuff : sre_parse raises an exception with the message "syntax error" - very generic and confusing - in the case where something that looks like a lookbehind assertion is invalid. >>> import re >>> re.match('(?.*)', 'foo&