Message82457
| Author |
grahamd |
| Recipients |
grahamd, jnoller |
| Date |
2009年02月19日.05:21:09 |
| SpamBayes Score |
1.40425e-05 |
| Marked as misclassified |
No |
| Message-id |
<1235020872.08.0.0158488308351.issue5313@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In multiprocessing.process it contains the code:
def _bootstrap(self):
....
if sys.stdin is not None:
try:
os.close(sys.stdin.fileno())
except (OSError, ValueError):
pass
This code should probably be calling sys.stdin.close() and not
os.close(sys.stdin.fileno()).
The code as is will fail if sys.stdin had been replaced with an alternate
file like object, such as StringIO, which doesn't have a fileno() method. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年02月19日 05:21:12 | grahamd | set | recipients:
+ grahamd, jnoller |
| 2009年02月19日 05:21:12 | grahamd | set | messageid: <1235020872.08.0.0158488308351.issue5313@psf.upfronthosting.co.za> |
| 2009年02月19日 05:21:10 | grahamd | link | issue5313 messages |
| 2009年02月19日 05:21:09 | grahamd | create |
|