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
ca7e1ee0
Kaydet (Commit)
ca7e1ee0
authored
Ock 11, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Updated descriptions to incorporate additional information from Tim Peters.
This mostly closes SF bug #128251.
üst
d8aaec04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
libmmap.tex
Doc/lib/libmmap.tex
+13
-11
No files found.
Doc/lib/libmmap.tex
Dosyayı görüntüle @
ca7e1ee0
...
@@ -20,25 +20,27 @@ different on Unix and on Windows.
...
@@ -20,25 +20,27 @@ different on Unix and on Windows.
\begin{funcdesc}
{
mmap
}{
fileno, length
\optional
{
, tagname
}}
\begin{funcdesc}
{
mmap
}{
fileno, length
\optional
{
, tagname
}}
\strong
{
(Windows version)
}
Maps
\var
{
length
}
bytes from the file
\strong
{
(Windows version)
}
Maps
\var
{
length
}
bytes from the file
specified by the file handle
\var
{
fileno
}
, and returns a mmap object.
specified by the file handle
\var
{
fileno
}
, and returns a mmap object.
If
\var
{
length
}
is
\code
{
0
}
, the maximum length of the map will be the
current size of the file when
\function
{
mmap()
}
is called.
If you wish to map an existing Python file object, use its
If you wish to map an existing Python file object, use its
\method
{
fileno()
}
method to obtain the correct value for the
\method
{
fileno()
}
method to obtain the correct value for the
\var
{
fileno
}
parameter.
\var
{
fileno
}
parameter.
The file must be opened for update.
\var
{
tagname
}
, if specified
, is a string giving a tag name for the mapping.
\var
{
tagname
}
, if specified
and not
\code
{
None
}
, is a string giving a
Windows allows you to have many different mappings against the same
tag name for the mapping. Windows allows you to have many different
file. If you specify the name of an existing tag, that tag is opened,
mappings against the same file. If you specify the name of an
otherwise a new tag of this name is created. If this parameter
is
existing tag, that tag is opened, otherwise a new tag of this name
is
None, the mapping is created without a name. Avoiding the use of the
created. If this parameter is omitted or
\code
{
None
}
, the mapping is
tag parameter will assist in keeping your code portable between Unix
created without a name. Avoiding the use of the tag parameter will
and Windows.
a
ssist in keeping your code portable between
\UNIX
{}
a
nd Windows.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
mmap
}{
fileno, size
\optional
{
, flags, prot
}}
\begin{funcdesc}
{
mmap
}{
fileno, size
\optional
{
, flags, prot
}}
\strong
{
(
Unix
version)
}
Maps
\var
{
length
}
bytes from the file
\strong
{
(
\UNIX
{}
version)
}
Maps
\var
{
length
}
bytes from the file
specified by the file handle
\var
{
fileno
}
, and returns a mmap object.
specified by the file handle
\var
{
fileno
}
, and returns a mmap object.
If you wish to map an existing Python file object, use its
If you wish to map an existing Python file object, use its
\method
{
fileno()
}
method to obtain the correct value for the
\method
{
fileno()
}
method to obtain the correct value for the
\var
{
fileno
}
parameter.
\var
{
fileno
}
parameter.
The file must be opened for update.
\var
{
flags
}
specifies the nature of the mapping.
\var
{
flags
}
specifies the nature of the mapping.
\constant
{
MAP
_
PRIVATE
}
creates a private copy-on-write mapping, so
\constant
{
MAP
_
PRIVATE
}
creates a private copy-on-write mapping, so
...
...
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