[issue1488934] file.write + closed pipe = no error

2011-01-12 Thread Erik Demaine
Erik Demaine added the comment: msg28537 shows a version with flush, and says that it fails. I haven't tested since 2006, though, so I can retry, in particular to see whether the patch suggested in the original post has been applied now. -- resolution: invalid -> status

[issue1488934] file.write + closed pipe = no error

2011-01-12 Thread Erik Demaine
Erik Demaine added the comment: I just tested on Python 2.5.2, 2.6.2, and 3.0.1, and I could not reproduce the error (using the code in msg28537). It would seem that file.flush is catching the problem, even though file.write is ignoring the error, but I can't see any changes since

[issue444582] Finding programs in PATH, addition to os

2010-07-08 Thread Erik Demaine
Erik Demaine added the comment: As mentioned in the original request, there are at least two motivations for "which" functionality that are distinct from running the program (these days, with the subprocess module). #1 was detecting existence of a program. #2 was finding t