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
ede6c2af
Kaydet (Commit)
ede6c2af
authored
Ock 05, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Assorted doc fixes by Florent.
üst
7de0a6e0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
glossary.rst
Doc/glossary.rst
+2
-2
binascii.rst
Doc/library/binascii.rst
+4
-4
reprlib.rst
Doc/library/reprlib.rst
+1
-1
stdtypes.rst
Doc/library/stdtypes.rst
+1
-1
No files found.
Doc/glossary.rst
Dosyayı görüntüle @
ede6c2af
...
...
@@ -355,7 +355,7 @@ Glossary
list comprehension
A compact way to process all or part of the elements in a sequence and
return a list with the results. ``result = [
"0x%02x" % x
for x in
return a list with the results. ``result = [
'{:#04x}'.format(x)
for x in
range(256) if x % 2 == 0]`` generates a list of strings containing
even hex numbers (0x..) in the range from 0 to 255. The :keyword:`if`
clause is optional. If omitted, all elements in ``range(256)`` are
...
...
@@ -471,7 +471,7 @@ Glossary
object drops to zero, it is deallocated. Reference counting is
generally not visible to Python code, but it is a key element of the
:term:`CPython` implementation. The :mod:`sys` module defines a
:func:`getrefcount` function that programmers can call to return the
:func:`
~sys.
getrefcount` function that programmers can call to return the
reference count for a particular object.
__slots__
...
...
Doc/library/binascii.rst
Dosyayı görüntüle @
ede6c2af
...
...
@@ -109,11 +109,11 @@ The :mod:`binascii` module defines the following functions:
use as a checksum algorithm, it is not suitable for use as a general hash
algorithm. Use as follows::
print(binascii.crc32("hello world"))
print(binascii.crc32(
b
"hello world"))
# Or, in two pieces:
crc = binascii.crc32("hello")
crc = binascii.crc32(" world", crc) & 0xffffffff
print('crc32 =
0x%08x' % crc
)
crc = binascii.crc32(
b
"hello")
crc = binascii.crc32(
b
" world", crc) & 0xffffffff
print('crc32 =
{:#010x}'.format(crc)
)
.. note::
To generate the same numeric value across all Python versions and
...
...
Doc/library/reprlib.rst
Dosyayı görüntüle @
ede6c2af
...
...
@@ -129,5 +129,5 @@ for file objects could be added::
return repr(obj)
aRepr = MyRepr()
print
aRepr.repr(sys.stdin)
# prints '<stdin>'
print
(aRepr.repr(sys.stdin))
# prints '<stdin>'
Doc/library/stdtypes.rst
Dosyayı görüntüle @
ede6c2af
...
...
@@ -1907,7 +1907,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
.. describe:: iter(d)
Return an iterator over the keys of the dictionary. This is a shortcut
for
:meth:`iterkeys
`.
for
``iter(d.keys())`
`.
.. method:: clear()
...
...
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