Yurttas/PL/SL/python/docs/core-python-programming/doc/152/api/os.html

From ZCubes Wiki
Revision as of 18:21, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<div class="navigation"> {| width="100%" cellspacing="2" align="center" | yurttas/PL/SL/python/docs/core-python-programming/doc/152/api/processControl.html|[[Image:yurt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


5.1 OS Utilities

int Py_FdIsInteractive (FILE *fp, char *filename)
Return true (nonzero) if the standard I/O file fp with name filename is deemed interactive. This is the case for files for which "isatty(fileno(fp))" is true. If the global flag Py_InteractiveFlag is true, this function also returns true if the name pointer is NULL or if the name is equal to one of the strings "<stdin>" or "???".
long PyOS_GetLastModificationTime (char *filename)
Return the time of last modification of the file filename. The result is encoded in the same way as the timestamp returned by the standard C library function time().

Send comments on this document to python-docs@python.org.