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
dfd775a0
Kaydet (Commit)
dfd775a0
authored
Mar 27, 2019
tarafından
Andre Delfino
Kaydeden (comit)
Éric Araujo
Mar 27, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor doc improvement (GH-10341)
Change "star-operator" to "* operator".
üst
484f20d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
collections.rst
Doc/library/collections.rst
+1
-1
controlflow.rst
Doc/tutorial/controlflow.rst
+2
-2
No files found.
Doc/library/collections.rst
Dosyayı görüntüle @
dfd775a0
...
...
@@ -971,7 +971,7 @@ function:
>>> getattr(p, 'x')
11
To convert a dictionary to a named tuple, use the
double-star-
operator
To convert a dictionary to a named tuple, use the
``**``
operator
(as described in :ref:`tut-unpacking-arguments`):
>>> d = {'x': 11, 'y': 22}
...
...
Doc/tutorial/controlflow.rst
Dosyayı görüntüle @
dfd775a0
...
...
@@ -560,7 +560,7 @@ The reverse situation occurs when the arguments are already in a list or tuple
but need to be unpacked for a function call requiring separate positional
arguments. For instance, the built-in :func:`range` function expects separate
*start* and *stop* arguments. If they are not available separately, write the
function call with the ``*``
\ -
operator to unpack the arguments out of a list
function call with the ``*``
operator to unpack the arguments out of a list
or tuple::
>>> list(range(3, 6)) # normal call with separate arguments
...
...
@@ -573,7 +573,7 @@ or tuple::
single: **; in function calls
In the same fashion, dictionaries can deliver keyword arguments with the
``**``
\ -
operator::
``**``
operator::
>>> def parrot(voltage, state='a stiff', action='voom'):
... print("-- This parrot wouldn't", action, end=' ')
...
...
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