Message88174
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. |
|
Date |
User |
Action |
Args |
2009-05-22 00:56:49 | ryles | set | recipients:
+ ryles |
2009-05-22 00:56:49 | ryles | set | messageid: <1242953809.47.0.424707579348.issue6082@psf.upfronthosting.co.za> |
2009-05-22 00:56:46 | ryles | link | issue6082 messages |
2009-05-22 00:56:45 | ryles | create | |
|