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
7f626f4c
Kaydet (Commit)
7f626f4c
authored
Agu 30, 2007
tarafından
Mark Summerfield
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added more cross-references.
üst
0226d857
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
collections.rst
Doc/library/collections.rst
+5
-1
fpformat.rst
Doc/library/fpformat.rst
+2
-2
stringio.rst
Doc/library/stringio.rst
+2
-1
No files found.
Doc/library/collections.rst
Dosyayı görüntüle @
7f626f4c
...
@@ -405,10 +405,14 @@ Setting the :attr:`default_factory` to :class:`set` makes the
...
@@ -405,10 +405,14 @@ Setting the :attr:`default_factory` to :class:`set` makes the
print record
print record
To cast an individual record stored as :class:`list`, :class:`tuple`, or some
To cast an individual record stored as :class:`list`, :class:`tuple`, or some
other iterable type, use the star-operator to unpack the values::
other iterable type, use the star-operator
[#]_
to unpack the values::
>>> Color = NamedTuple('Color', 'name code')
>>> Color = NamedTuple('Color', 'name code')
>>> m = dict(red=1, green=2, blue=3)
>>> m = dict(red=1, green=2, blue=3)
>>> print Color(*m.popitem())
>>> print Color(*m.popitem())
Color(name='blue', code=3)
Color(name='blue', code=3)
.. rubric:: Footnotes
.. [#] For information on the star-operator see
:ref:`tut-unpacking-arguments` and :ref:`calls`.
Doc/library/fpformat.rst
Dosyayı görüntüle @
7f626f4c
...
@@ -12,8 +12,8 @@ numbers representations in 100% pure Python.
...
@@ -12,8 +12,8 @@ numbers representations in 100% pure Python.
.. note::
.. note::
This module is unne
eded: everything here could be done via
the ``%`` string
This module is unne
cessary: everything here can be done using
the ``%`` string
interpolation operator.
interpolation operator
described in the :ref:`string-formatting` section
.
The :mod:`fpformat` module defines the following functions and an exception:
The :mod:`fpformat` module defines the following functions and an exception:
...
...
Doc/library/stringio.rst
Dosyayı görüntüle @
7f626f4c
...
@@ -8,7 +8,8 @@
...
@@ -8,7 +8,8 @@
This module implements a file-like class, :class:`StringIO`, that reads and
This module implements a file-like class, :class:`StringIO`, that reads and
writes a string buffer (also known as *memory files*). See the description of
writes a string buffer (also known as *memory files*). See the description of
file objects for operations (section :ref:`bltin-file-objects`).
file objects for operations (section :ref:`bltin-file-objects`). (For
standard strings, see :class:`str` and :class:`unicode`.)
.. class:: StringIO([buffer])
.. class:: StringIO([buffer])
...
...
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