This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petere
Recipients amaury.forgeotdarc, benjamin.peterson, doko, petere, pitrou, stutzbach
Date 2009-10-14.09:55:11
SpamBayes Score 3.21612e-06
Marked as misclassified No
Message-id <>
For what it's worth, the code in question is used here (using "import
distutils" instead of "pass"):;content-type=text%2Fx-cvsweb-markup

This is obviously a completely gratuitous variant on 2>/dev/null, but it
has apparently been working since forever.  I'll probably go make the
change anyway.

Nevertheless, I think Python shouldn't core dump.  It may choose to exit
doing nothing (useful) if it doesn't want to deal with this case.

Check this for possible alternative behaviors:

$ ls 1>&-
ls: write error: Bad file descriptor
($? = 2)
$ ls 1>&- 2>&-
($? = 2, no output)
Date User Action Args
2009-10-14 09:55:13peteresetrecipients: + petere, doko, amaury.forgeotdarc, pitrou, benjamin.peterson, stutzbach
2009-10-14 09:55:13peteresetmessageid: <>
2009-10-14 09:55:12peterelinkissue7111 messages
2009-10-14 09:55:11peterecreate