diff options
author | hut <hut@lavabit.com> | 2010-02-16 01:56:21 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-02-16 02:03:46 +0100 |
commit | 34a60763e79546e0f84e30fbcc430632f3dbb39e (patch) | |
tree | 595579022daa922b3e4945928b4478c0797b3b2c /doc/pydoc/os.html | |
parent | 0654d6d093f8e78033b9dcafcb52bbdcd92aed0c (diff) | |
download | ranger-34a60763e79546e0f84e30fbcc430632f3dbb39e.tar.gz |
incremented version number and updated pydoc html files v1.0.3
Diffstat (limited to 'doc/pydoc/os.html')
-rw-r--r-- | doc/pydoc/os.html | 149 |
1 files changed, 95 insertions, 54 deletions
diff --git a/doc/pydoc/os.html b/doc/pydoc/os.html index 9d1b6771..b0b2b308 100644 --- a/doc/pydoc/os.html +++ b/doc/pydoc/os.html @@ -1,6 +1,6 @@ + <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module os</title> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,17 +8,17 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>os</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/lib/python3.1/os.py">/usr/lib/python3.1/os.py</a><br><a href="http://docs.python.org/library/os">Module Docs</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/lib/python2.6/os.py">/usr/lib/python2.6/os.py</a><br><a href="http://docs.python.org/library/os">Module Docs</a></font></td></tr></table> <p><tt>OS routines for Mac, NT, or Posix depending on what system we're on.<br> <br> This exports:<br> - all functions from posix, nt, os2, or ce, e.g. unlink, stat, etc.<br> - - os.path is either posixpath or ntpath<br> - - os.name is either 'posix', 'nt', 'os2' or 'ce'.<br> + - os.path is one of the modules posixpath, or ntpath<br> + - os.name is 'posix', 'nt', 'os2', 'ce' or 'riscos'<br> - os.curdir is a string representing the current directory ('.' or ':')<br> - os.pardir is a string representing the parent directory ('..' or '::')<br> - os.sep is the (or a most common) pathname separator ('/' or ':' or '\\')<br> - - os.extsep is the extension separator (always '.')<br> + - os.extsep is the extension separator ('.' or '/')<br> - os.altsep is the alternate pathname separator (None or '/')<br> - os.pathsep is the component separator used in $PATH etc<br> - os.linesep is the line separator in text files ('\r' or '\n' or '\r\n')<br> @@ -37,11 +37,12 @@ and opendir), and leave all pathname manipulation& <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> -<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="copyreg.html">copyreg</a><br> +<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="UserDict.html">UserDict</a><br> +<a href="copy_reg.html">copy_reg</a><br> </td><td width="25%" valign=top><a href="errno.html">errno</a><br> -</td><td width="25%" valign=top><a href="posixpath.html">posixpath</a><br> +<a href="posixpath.html">posixpath</a><br> </td><td width="25%" valign=top><a href="sys.html">sys</a><br> -</td></tr></table></td></tr></table><p> +</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ee77aa"> <td colspan=3 valign=bottom> <br> @@ -49,17 +50,17 @@ and opendir), and leave all pathname manipulation& <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>(<a href="builtins.html#Exception">builtins.Exception</a>) +<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> </font></dt><dd> <dl> -<dt><font face="helvetica, arial"><a href="builtins.html#OSError">builtins.OSError</a> +<dt><font face="helvetica, arial"><a href="posix.html#stat_result">posix.stat_result</a> +</font></dt><dt><font face="helvetica, arial"><a href="posix.html#statvfs_result">posix.statvfs_result</a> </font></dt></dl> </dd> -<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> +<dt><font face="helvetica, arial"><a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>(<a href="exceptions.html#StandardError">exceptions.StandardError</a>) </font></dt><dd> <dl> -<dt><font face="helvetica, arial"><a href="posix.html#stat_result">posix.stat_result</a> -</font></dt><dt><font face="helvetica, arial"><a href="posix.html#statvfs_result">posix.statvfs_result</a> +<dt><font face="helvetica, arial"><a href="exceptions.html#OSError">exceptions.OSError</a> </font></dt></dl> </dd> </dl> @@ -67,17 +68,18 @@ and opendir), and leave all pathname manipulation& <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><strong>error</strong> = <a name="error">class OSError</a>(<a href="builtins.html#EnvironmentError">EnvironmentError</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><strong>error</strong> = <a name="error">class OSError</a>(<a href="exceptions.html#EnvironmentError">EnvironmentError</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>OS system call failed.<br> </tt></td></tr> <tr><td> </td> <td width="100%"><dl><dt>Method resolution order:</dt> -<dd><a href="builtins.html#OSError">OSError</a></dd> -<dd><a href="builtins.html#EnvironmentError">EnvironmentError</a></dd> -<dd><a href="builtins.html#Exception">Exception</a></dd> -<dd><a href="builtins.html#BaseException">BaseException</a></dd> -<dd><a href="builtins.html#object">object</a></dd> +<dd><a href="exceptions.html#OSError">OSError</a></dd> +<dd><a href="exceptions.html#EnvironmentError">EnvironmentError</a></dd> +<dd><a href="exceptions.html#StandardError">StandardError</a></dd> +<dd><a href="exceptions.html#Exception">Exception</a></dd> +<dd><a href="exceptions.html#BaseException">BaseException</a></dd> +<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -85,16 +87,16 @@ Methods defined here:<br> <hr> Data and other attributes defined here:<br> -<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0x7f6a9223efc0><dd><tt>T.<a href="#error-__new__">__new__</a>(S, ...) -> a new <a href="builtins.html#object">object</a> with type S, a subtype of T</tt></dl> +<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0x7fdbe7034f80><dd><tt>T.<a href="#error-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> <hr> -Methods inherited from <a href="builtins.html#EnvironmentError">EnvironmentError</a>:<br> +Methods inherited from <a href="exceptions.html#EnvironmentError">EnvironmentError</a>:<br> <dl><dt><a name="OSError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> <dl><dt><a name="OSError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#error-__str__">__str__</a>() <==> str(x)</tt></dd></dl> <hr> -Data descriptors inherited from <a href="builtins.html#EnvironmentError">EnvironmentError</a>:<br> +Data descriptors inherited from <a href="exceptions.html#EnvironmentError">EnvironmentError</a>:<br> <dl><dt><strong>errno</strong></dt> <dd><tt>exception errno</tt></dd> </dl> @@ -105,44 +107,43 @@ Data descriptors inherited from <a href="builtins.html#EnvironmentError">Environ <dd><tt>exception strerror</tt></dd> </dl> <hr> -Methods inherited from <a href="builtins.html#BaseException">BaseException</a>:<br> +Methods inherited from <a href="exceptions.html#BaseException">BaseException</a>:<br> <dl><dt><a name="OSError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#error-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> <dl><dt><a name="OSError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#error-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> +<dl><dt><a name="OSError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#error-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> + +<dl><dt><a name="OSError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#error-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> + <br> +Use of negative indices is not supported.</tt></dd></dl> + <dl><dt><a name="OSError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#error-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> <dl><dt><a name="OSError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#error-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> <dl><dt><a name="OSError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> -<dl><dt><a name="OSError-with_traceback"><strong>with_traceback</strong></a>(...)</dt><dd><tt>Exception.<a href="#error-with_traceback">with_traceback</a>(tb) --<br> -set self.<strong>__traceback__</strong> to tb and return self.</tt></dd></dl> +<dl><dt><a name="OSError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> <hr> -Data descriptors inherited from <a href="builtins.html#BaseException">BaseException</a>:<br> -<dl><dt><strong>__cause__</strong></dt> -<dd><tt>exception cause</tt></dd> -</dl> -<dl><dt><strong>__context__</strong></dt> -<dd><tt>exception context</tt></dd> -</dl> +Data descriptors inherited from <a href="exceptions.html#BaseException">BaseException</a>:<br> <dl><dt><strong>__dict__</strong></dt> </dl> -<dl><dt><strong>__traceback__</strong></dt> -</dl> <dl><dt><strong>args</strong></dt> </dl> +<dl><dt><strong>message</strong></dt> +</dl> </td></tr></table> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="stat_result">class <strong>stat_result</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="stat_result">class <strong>stat_result</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt><a href="#stat_result">stat_result</a>: Result from stat or lstat.<br> <br> -This <a href="builtins.html#object">object</a> may be accessed either as a tuple of<br> +This <a href="__builtin__.html#object">object</a> may be accessed either as a tuple of<br> (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)<br> or via the attributes st_mode, st_ino, st_dev, st_nlink, st_uid, and so on.<br> <br> @@ -162,6 +163,10 @@ See os.stat for more information.<br> </tt></td></tr> <dl><dt><a name="stat_result-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#stat_result-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> +<dl><dt><a name="stat_result-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#stat_result-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> + <br> +Use of negative indices is not supported.</tt></dd></dl> + <dl><dt><a name="stat_result-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#stat_result-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl> <dl><dt><a name="stat_result-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#stat_result-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl> @@ -225,7 +230,7 @@ Data descriptors defined here:<br> </dl> <hr> Data and other attributes defined here:<br> -<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0x7f6a92292840><dd><tt>T.<a href="#stat_result-__new__">__new__</a>(S, ...) -> a new <a href="builtins.html#object">object</a> with type S, a subtype of T</tt></dl> +<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0x7fdbe7073800><dd><tt>T.<a href="#stat_result-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> <dl><dt><strong>n_fields</strong> = 16</dl> @@ -237,12 +242,12 @@ Data and other attributes defined here:<br> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="statvfs_result">class <strong>statvfs_result</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="statvfs_result">class <strong>statvfs_result</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt><a href="#statvfs_result">statvfs_result</a>: Result from statvfs or fstatvfs.<br> <br> -This <a href="builtins.html#object">object</a> may be accessed either as a tuple of<br> +This <a href="__builtin__.html#object">object</a> may be accessed either as a tuple of<br> (bsize, frsize, blocks, bfree, bavail, files, ffree, favail, flag, namemax),<br> or via the attributes f_bsize, f_frsize, f_blocks, f_bfree, and so on.<br> <br> @@ -259,6 +264,10 @@ See os.statvfs for more information.<br> </tt></td></tr <dl><dt><a name="statvfs_result-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#statvfs_result-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> +<dl><dt><a name="statvfs_result-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#statvfs_result-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> + <br> +Use of negative indices is not supported.</tt></dd></dl> + <dl><dt><a name="statvfs_result-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#statvfs_result-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl> <dl><dt><a name="statvfs_result-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#statvfs_result-__hash__">__hash__</a>() <==> hash(x)</tt></dd></dl> @@ -303,7 +312,7 @@ Data descriptors defined here:<br> </dl> <hr> Data and other attributes defined here:<br> -<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0x7f6a922929e0><dd><tt>T.<a href="#statvfs_result-__new__">__new__</a>(S, ...) -> a new <a href="builtins.html#object">object</a> with type S, a subtype of T</tt></dl> +<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object at 0x7fdbe70739a0><dd><tt>T.<a href="#statvfs_result-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> <dl><dt><strong>n_fields</strong> = 10</dl> @@ -381,10 +390,6 @@ Return a string-valued system configuration variable.</ <dl><dt><a name="-ctermid"><strong>ctermid</strong></a>(...)</dt><dd><tt><a href="#-ctermid">ctermid</a>() -> string<br> <br> Return the name of the controlling terminal for this process.</tt></dd></dl> - <dl><dt><a name="-device_encoding"><strong>device_encoding</strong></a>(...)</dt><dd><tt><a href="#-device_encoding">device_encoding</a>(fd) -> str<br> - <br> -Return a string describing the encoding of the device<br> -if the output is a terminal; else return None.</tt></dd></dl> <dl><dt><a name="-dup"><strong>dup</strong></a>(...)</dt><dd><tt><a href="#-dup">dup</a>(fd) -> fd2<br> <br> Return a duplicate of a file descriptor.</tt></dd></dl> @@ -448,6 +453,9 @@ fd to the numeric uid and gid.</tt></dd></dl> <br> force write of file with filedescriptor to disk.<br> does not force update of metadata.</tt></dd></dl> + <dl><dt><a name="-fdopen"><strong>fdopen</strong></a>(...)</dt><dd><tt><a href="#-fdopen">fdopen</a>(fd [, mode='r' [, bufsize]]) -> file_object<br> + <br> +Return an open file <a href="__builtin__.html#object">object</a> connected to a file descriptor.</tt></dd></dl> <dl><dt><a name="-fork"><strong>fork</strong></a>(...)</dt><dd><tt><a href="#-fork">fork</a>() -> pid<br> <br> Fork a child process.<br> @@ -476,10 +484,10 @@ force write of file with filedescriptor to di Truncate a file to a specified length.</tt></dd></dl> <dl><dt><a name="-getcwd"><strong>getcwd</strong></a>(...)</dt><dd><tt><a href="#-getcwd">getcwd</a>() -> path<br> <br> -Return a unicode string representing the current working directory.</tt></dd></dl> - <dl><dt><a name="-getcwdb"><strong>getcwdb</strong></a>(...)</dt><dd><tt><a href="#-getcwdb">getcwdb</a>() -> path<br> +Return a string representing the current working directory.</tt></dd></dl> + <dl><dt><a name="-getcwdu"><strong>getcwdu</strong></a>(...)</dt><dd><tt><a href="#-getcwdu">getcwdu</a>() -> path<br> <br> -Return a bytes string representing the current working directory.</tt></dd></dl> +Return a unicode string representing the current working directory.</tt></dd></dl> <dl><dt><a name="-getegid"><strong>getegid</strong></a>(...)</dt><dd><tt><a href="#-getegid">getegid</a>() -> egid<br> <br> Return the current process's effective group id.</tt></dd></dl> @@ -555,7 +563,7 @@ Like <a href="#-stat">stat</a>(path), but do not follow Extracts a device major number from a raw device number.</tt></dd></dl> <dl><dt><a name="-makedev"><strong>makedev</strong></a>(...)</dt><dd><tt><a href="#-makedev">makedev</a>(major, minor) -> device number<br> Composes a raw device number from the major and minor device numbers.</tt></dd></dl> - <dl><dt><a name="-makedirs"><strong>makedirs</strong></a>(name, mode<font color="#909090">=511</font>)</dt><dd><tt><a href="#-makedirs">makedirs</a>(path [, mode=0o777])<br> + <dl><dt><a name="-makedirs"><strong>makedirs</strong></a>(name, mode<font color="#909090">=511</font>)</dt><dd><tt><a href="#-makedirs">makedirs</a>(path [, mode=0777])<br> <br> Super-mkdir; create a leaf directory and all intermediate ones.<br> Works like mkdir, except that any intermediate path segment (not<br> @@ -593,6 +601,27 @@ If there is no limit, return -1.</tt></dd></dl> <dl><dt><a name="-pipe"><strong>pipe</strong></a>(...)</dt><dd><tt><a href="#-pipe">pipe</a>() -> (read_end, write_end)<br> <br> Create a pipe.</tt></dd></dl> + <dl><dt><a name="-popen"><strong>popen</strong></a>(...)</dt><dd><tt><a href="#-popen">popen</a>(command [, mode='r' [, bufsize]]) -> pipe<br> + <br> +Open a pipe to/from a command returning a file <a href="__builtin__.html#object">object</a>.</tt></dd></dl> + <dl><dt><a name="-popen2"><strong>popen2</strong></a>(cmd, mode<font color="#909090">='t'</font>, bufsize<font color="#909090">=-1</font>)</dt><dd><tt>Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd'<br> +may be a sequence, in which case arguments will be passed directly to<br> +the program without shell intervention (as with os.<a href="#-spawnv">spawnv</a>()). If 'cmd'<br> +is a string it will be passed to the shell (as with os.<a href="#-system">system</a>()). If<br> +'bufsize' is specified, it sets the buffer size for the I/O pipes. The<br> +file objects (child_stdin, child_stdout) are returned.</tt></dd></dl> + <dl><dt><a name="-popen3"><strong>popen3</strong></a>(cmd, mode<font color="#909090">='t'</font>, bufsize<font color="#909090">=-1</font>)</dt><dd><tt>Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd'<br> +may be a sequence, in which case arguments will be passed directly to<br> +the program without shell intervention (as with os.<a href="#-spawnv">spawnv</a>()). If 'cmd'<br> +is a string it will be passed to the shell (as with os.<a href="#-system">system</a>()). If<br> +'bufsize' is specified, it sets the buffer size for the I/O pipes. The<br> +file objects (child_stdin, child_stdout, child_stderr) are returned.</tt></dd></dl> + <dl><dt><a name="-popen4"><strong>popen4</strong></a>(cmd, mode<font color="#909090">='t'</font>, bufsize<font color="#909090">=-1</font>)</dt><dd><tt>Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd'<br> +may be a sequence, in which case arguments will be passed directly to<br> +the program without shell intervention (as with os.<a href="#-spawnv">spawnv</a>()). If 'cmd'<br> +is a string it will be passed to the shell (as with os.<a href="#-system">system</a>()). If<br> +'bufsize' is specified, it sets the buffer size for the I/O pipes. The<br> +file objects (child_stdin, child_stdout_stderr) are returned.</tt></dd></dl> <dl><dt><a name="-putenv"><strong>putenv</strong></a>(...)</dt><dd><tt><a href="#-putenv">putenv</a>(key, value)<br> <br> Change or add an environment variable.</tt></dd></dl> @@ -745,9 +774,20 @@ Return the process group associated with the <dl><dt><a name="-tcsetpgrp"><strong>tcsetpgrp</strong></a>(...)</dt><dd><tt><a href="#-tcsetpgrp">tcsetpgrp</a>(fd, pgid)<br> <br> Set the process group associated with the terminal given by a fd.</tt></dd></dl> + <dl><dt><a name="-tempnam"><strong>tempnam</strong></a>(...)</dt><dd><tt><a href="#-tempnam">tempnam</a>([dir[, prefix]]) -> string<br> + <br> +Return a unique name for a temporary file.<br> +The directory and a prefix may be specified as strings; they may be omitted<br> +or None if not needed.</tt></dd></dl> <dl><dt><a name="-times"><strong>times</strong></a>(...)</dt><dd><tt><a href="#-times">times</a>() -> (utime, stime, cutime, cstime, elapsed_time)<br> <br> Return a tuple of floating point numbers indicating process times.</tt></dd></dl> + <dl><dt><a name="-tmpfile"><strong>tmpfile</strong></a>(...)</dt><dd><tt><a href="#-tmpfile">tmpfile</a>() -> file <a href="__builtin__.html#object">object</a><br> + <br> +Create a temporary file with no directory entries.</tt></dd></dl> + <dl><dt><a name="-tmpnam"><strong>tmpnam</strong></a>(...)</dt><dd><tt><a href="#-tmpnam">tmpnam</a>() -> string<br> + <br> +Return a unique name for a temporary file.</tt></dd></dl> <dl><dt><a name="-ttyname"><strong>ttyname</strong></a>(...)</dt><dd><tt><a href="#-ttyname">ttyname</a>(fd) -> string<br> <br> Return the name of the terminal device connected to 'fd'.</tt></dd></dl> @@ -813,7 +853,7 @@ optional arg 'onerror' is specified, it should&nbs will be called with one argument, an os.<a href="#error">error</a> instance. It can<br> report the <a href="#error">error</a> to continue with the walk, or raise the exception<br> to abort the walk. Note that the filename is available as the<br> -filename attribute of the exception <a href="builtins.html#object">object</a>.<br> +filename attribute of the exception <a href="__builtin__.html#object">object</a>.<br> <br> By default, os.walk does not follow symbolic links to subdirectories on<br> systems that support them. In order to get this functionality, set the<br> @@ -829,9 +869,9 @@ Example:<br> import os<br> from os.path import join, getsize<br> for root, dirs, files in os.<a href="#-walk">walk</a>('python/Lib/email'):<br> - print(root, "consumes", end="")<br> - print(sum([getsize(join(root, name)) for name in files]), end="")<br> - print("bytes in", len(files), "non-directory files")<br> + print root, "consumes",<br> + print sum([getsize(join(root, name)) for name in files]),<br> + print "bytes in", len(files), "non-directory files"<br> if 'CVS' in dirs:<br> dirs.<a href="#-remove">remove</a>('CVS') # don't visit CVS directories</tt></dd></dl> <dl><dt><a name="-write"><strong>write</strong></a>(...)</dt><dd><tt><a href="#-write">write</a>(fd, string) -> byteswritten<br> @@ -891,13 +931,14 @@ Write a string to a file descriptor.</tt></dd></dl <strong>WUNTRACED</strong> = 2<br> <strong>W_OK</strong> = 2<br> <strong>X_OK</strong> = 1<br> -<strong>__all__</strong> = ['altsep', 'curdir', 'pardir', 'sep', 'pathsep', 'linesep', 'defpath', 'name', 'path', 'devnull', 'SEEK_SET', 'SEEK_CUR', 'SEEK_END', 'EX_CANTCREAT', 'EX_CONFIG', 'EX_DATAERR', 'EX_IOERR', 'EX_NOHOST', 'EX_NOINPUT', 'EX_NOPERM', ...]<br> +<strong>__all__</strong> = ['altsep', 'curdir', 'pardir', 'sep', 'extsep', 'pathsep', 'linesep', 'defpath', 'name', 'path', 'devnull', 'SEEK_SET', 'SEEK_CUR', 'SEEK_END', 'EX_CANTCREAT', 'EX_CONFIG', 'EX_DATAERR', 'EX_IOERR', 'EX_NOHOST', 'EX_NOINPUT', ...]<br> <strong>altsep</strong> = None<br> <strong>confstr_names</strong> = {'CS_LFS64_CFLAGS': 1004, 'CS_LFS64_LDFLAGS': 1005, 'CS_LFS64_LIBS': 1006, 'CS_LFS64_LINTFLAGS': 1007, 'CS_LFS_CFLAGS': 1000, 'CS_LFS_LDFLAGS': 1001, 'CS_LFS_LIBS': 1002, 'CS_LFS_LINTFLAGS': 1003, 'CS_PATH': 0, 'CS_XBS5_ILP32_OFF32_CFLAGS': 1100, ...}<br> <strong>curdir</strong> = '.'<br> <strong>defpath</strong> = ':/bin:/usr/bin'<br> <strong>devnull</strong> = '/dev/null'<br> -<strong>environ</strong> = <os._Environ object at 0x7f6a9127be50><br> +<strong>environ</strong> = {'PROMPT_COMMAND': 'echo -ne "\\033]0;${USER}@${...L': '/var/spool/mail/hut', 'OLDPWD': '/home/hut'}<br> +<strong>extsep</strong> = '.'<br> <strong>linesep</strong> = '<font color="#c040c0">\n</font>'<br> <strong>name</strong> = 'posix'<br> <strong>pardir</strong> = '..'<br> |