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
fb28fcc9
Unverified
Kaydet (Commit)
fb28fcc9
authored
Mar 28, 2019
tarafından
Raymond Hettinger
Kaydeden (comit)
GitHub
Mar 28, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert "Minor doc improvement (GH-10341)" (GH-12597)
This reverts commit
dfd775a0
.
üst
b95a79c9
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 @
fb28fcc9
...
@@ -971,7 +971,7 @@ function:
...
@@ -971,7 +971,7 @@ function:
>>> getattr(p, 'x')
>>> getattr(p, 'x')
11
11
To convert a dictionary to a named tuple, use the
``**``
operator
To convert a dictionary to a named tuple, use the
double-star-
operator
(as described in :ref:`tut-unpacking-arguments`):
(as described in :ref:`tut-unpacking-arguments`):
>>> d = {'x': 11, 'y': 22}
>>> d = {'x': 11, 'y': 22}
...
...
Doc/tutorial/controlflow.rst
Dosyayı görüntüle @
fb28fcc9
...
@@ -560,7 +560,7 @@ The reverse situation occurs when the arguments are already in a list or tuple
...
@@ -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
but need to be unpacked for a function call requiring separate positional
arguments. For instance, the built-in :func:`range` function expects separate
arguments. For instance, the built-in :func:`range` function expects separate
*start* and *stop* arguments. If they are not available separately, write the
*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::
or tuple::
>>> list(range(3, 6)) # normal call with separate arguments
>>> list(range(3, 6)) # normal call with separate arguments
...
@@ -573,7 +573,7 @@ or tuple::
...
@@ -573,7 +573,7 @@ or tuple::
single: **; in function calls
single: **; in function calls
In the same fashion, dictionaries can deliver keyword arguments with the
In the same fashion, dictionaries can deliver keyword arguments with the
``**``
operator::
``**``
\ -
operator::
>>> def parrot(voltage, state='a stiff', action='voom'):
>>> def parrot(voltage, state='a stiff', action='voom'):
... print("-- This parrot wouldn't", action, end=' ')
... 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