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
a09ca385
Kaydet (Commit)
a09ca385
authored
Ara 02, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some 2.xisms in merged docs.
üst
f78b1c65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
glossary.rst
Doc/glossary.rst
+9
-8
mmap.rst
Doc/library/mmap.rst
+4
-4
No files found.
Doc/glossary.rst
Dosyayı görüntüle @
a09ca385
...
...
@@ -71,6 +71,8 @@ Glossary
def f(...):
...
The same concept exists for classes, but is less commonly used there.
descriptor
An object that defines the methods :meth:`__get__`, :meth:`__set__`, or
:meth:`__delete__`. When a class attribute is a descriptor, its special
...
...
@@ -114,7 +116,7 @@ Glossary
attribute access, operators or function calls that all return a value.
In contrast to other languages, not all language constructs are expressions,
but there are also :term:`statement`\s that cannot be used as expressions,
such as :keyword:`
print
` or :keyword:`if`. Assignments are also not
such as :keyword:`
while
` or :keyword:`if`. Assignments are also not
expressions.
extension module
...
...
@@ -357,7 +359,7 @@ Glossary
:term:`argument`.
Python 3000
Nickname for the
next major Python version, 3.0
(coined long ago when the
Nickname for the
Python 3.x release line
(coined long ago when the
release of version 3 was something in the distant future.)
Pythonic
...
...
@@ -368,12 +370,12 @@ Glossary
use a numerical counter instead::
for i in range(len(food)):
print
food[i]
print
(food[i])
As opposed to the cleaner, Pythonic method::
for piece in food:
print
piece
print
(piece)
reference count
The number of places where a certain object is referenced to. When the
...
...
@@ -398,16 +400,15 @@ Glossary
:term:`immutable` keys rather than integers.
slice
A
list containing a portion of an indexed list-like object
. A slice is
A
n object usually containing a portion of a :term:`sequence`
. A slice is
created using the subscript notation, ``[]`` with colons between numbers
when several are given, such as in ``variable_name[1:3:5]``. The bracket
(subscript) notation uses :class:`slice` objects internally (or in older
versions, :meth:`__getslice__` and :meth:`__setslice__`).
(subscript) notation uses :class:`slice` objects internally.
statement
A statement is part of a suite (a "block" of code). A statement is either
an :term:`expression` or a one of several constructs with a keyword, such
as :keyword:`if`, :keyword:`while` or :keyword:`
print
`.
as :keyword:`if`, :keyword:`while` or :keyword:`
for
`.
type
The type of a Python object determines what kind of object it is; every
...
...
Doc/library/mmap.rst
Dosyayı görüntüle @
a09ca385
...
...
@@ -97,15 +97,15 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
# memory-map the file, size 0 means whole file
map = mmap.mmap(f.fileno(), 0)
# read content via standard file methods
print
map.readline(
) # prints "Hello Python!"
print
(map.readline()
) # prints "Hello Python!"
# read content via slice notation
print
map[:5]
# prints "Hello"
print
(map[:5])
# prints "Hello"
# update content using slice notation;
# note that new content must have same size
map[6:] = " world!\n"
# ... and read again using standard file methods
map.seek(0)
print
map.readline(
) # prints "Hello world!"
print
(map.readline()
) # prints "Hello world!"
# close the map
map.close()
...
...
@@ -123,7 +123,7 @@ To map anonymous memory, -1 should be passed as the fileno along with the length
if pid == 0: # In a child process
map.seek(0)
print
map.readline(
)
print
(map.readline()
)
map.close()
...
...
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