Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/tempfile.rst

    r2 r391  
    1 
    21:mod:`tempfile` --- Generate temporary files and directories
    32============================================================
     
    1312   pair: temporary; file name
    1413   pair: temporary; file
     14
     15**Source code:** :source:`Lib/tempfile.py`
     16
     17--------------
    1518
    1619This module generates temporary files and directories.  It works on all
     
    6265   the file is guaranteed to have a visible name in the file system (on
    6366   Unix, the directory entry is not unlinked).  That name can be retrieved
    64    from the :attr:`name` member of the file object.  Whether the name can be
     67   from the :attr:`name` attribute of the file object.  Whether the name can be
    6568   used to open the file a second time, while the named temporary file is
    6669   still open, varies across platforms (it can be so used on Unix; it cannot
     
    8487   until the file's :func:`fileno` method is called, at which point the
    8588   contents are written to disk and operation proceeds as with
    86    :func:`TemporaryFile`.
     89   :func:`TemporaryFile`.  Also, it's ``truncate`` method does not
     90   accept a ``size`` argument.
    8791
    8892   The resulting file has one additional method, :func:`rollover`, which
     
    9094
    9195   The returned object is a file-like object whose :attr:`_file` attribute
    92    is either a :class:`StringIO` object or a true file object, depending on
     96   is either a :class:`~StringIO.StringIO` object or a true file object, depending on
    9397   whether :func:`rollover` has been called. This file-like object can be
    9498   used in a :keyword:`with` statement, just like a normal file.
Note: See TracChangeset for help on using the changeset viewer.