Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
14dfede1
Kaydet (Commit)
14dfede1
authored
May 21, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix signatures for the various TemporaryFile class^Wfunctions.
üst
e3285d00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
tempfile.rst
Doc/library/tempfile.rst
+5
-6
No files found.
Doc/library/tempfile.rst
Dosyayı görüntüle @
14dfede1
...
...
@@ -27,8 +27,7 @@ is recommended to use keyword arguments for clarity.
The module defines the following user-callable functions:
.. function:: TemporaryFile(mode='w+b', bufsize=-1, suffix='', prefix='tmp', dir=None)
.. function:: TemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix='', prefix='tmp', dir=None)
Return a file-like object that can be used as a temporary storage area.
The file is created using :func:`mkstemp`. It will be destroyed as soon
...
...
@@ -41,8 +40,8 @@ The module defines the following user-callable functions:
The *mode* parameter defaults to ``'w+b'`` so that the file created can
be read and written without being closed. Binary mode is used so that it
behaves consistently on all platforms without regard for the data that is
stored. *buf
size* defaults to ``-1``, meaning that the operating system
default is used
.
stored. *buf
fering*, *encoding* and *newline* are interpreted as for
:func:`open`
.
The *dir*, *prefix* and *suffix* parameters are passed to :func:`mkstemp`.
...
...
@@ -52,7 +51,7 @@ The module defines the following user-callable functions:
:keyword:`with` statement, just like a normal file.
.. function:: NamedTemporaryFile(mode='w+b', buf
size=-1
, suffix='', prefix='tmp', dir=None, delete=True)
.. function:: NamedTemporaryFile(mode='w+b', buf
fering=None, encoding=None, newline=None
, suffix='', prefix='tmp', dir=None, delete=True)
This function operates exactly as :func:`TemporaryFile` does, except that
the file is guaranteed to have a visible name in the file system (on
...
...
@@ -67,7 +66,7 @@ The module defines the following user-callable functions:
be used in a :keyword:`with` statement, just like a normal file.
.. function:: SpooledTemporaryFile(max_size=0, mode='w+b', buf
size=-1
, suffix='', prefix='tmp', dir=None)
.. function:: SpooledTemporaryFile(max_size=0, mode='w+b', buf
fering=None, encoding=None, newline=None
, suffix='', prefix='tmp', dir=None)
This function operates exactly as :func:`TemporaryFile` does, except that
data is spooled in memory until the file size exceeds *max_size*, or
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment