~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/tempfile.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
   The *dir*, *prefix* and *suffix* parameters are passed to :func:`mkstemp`.
52
52
 
53
53
   The returned object is a true file object on POSIX platforms.  On other
54
 
   platforms, it is a file-like object whose :attr:`file` attribute is the
 
54
   platforms, it is a file-like object whose :attr:`!file` attribute is the
55
55
   underlying true file object. This file-like object can be used in a
56
56
   :keyword:`with` statement, just like a normal file.
57
57
 
67
67
   on Windows NT or later).  If *delete* is true (the default), the file is
68
68
   deleted as soon as it is closed.
69
69
 
70
 
   The returned object is always a file-like object whose :attr:`file`
 
70
   The returned object is always a file-like object whose :attr:`!file`
71
71
   attribute is the underlying true file object. This file-like object can
72
72
   be used in a :keyword:`with` statement, just like a normal file.
73
73