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 ryles
Recipients ryles
Date 2009-05-22.00:56:44
SpamBayes Score 1.0272777e-07
Marked as misclassified No
Message-id <1242953809.47.0.424707579348.issue6082@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.6.1 (r261:67515, Apr  2 2009, 18:25:55)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, os
>>> os.path.sameopenfile(sys.stdin.fileno(), sys.stdout.fileno())
True
>>> os.path.sameopenfile(sys.stdout.fileno(), sys.stderr.fileno())
True
>>> null = open(os.devnull)
>>> os.path.sameopenfile(sys.stdin.fileno(), null.fileno())
False
>>> # That worked.
History
Date User Action Args
2009-05-22 00:56:49rylessetrecipients: + ryles
2009-05-22 00:56:49rylessetmessageid: <1242953809.47.0.424707579348.issue6082@psf.upfronthosting.co.za>
2009-05-22 00:56:46ryleslinkissue6082 messages
2009-05-22 00:56:45rylescreate