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
f4efa312
Kaydet (Commit)
f4efa312
authored
Nis 08, 2019
tarafından
Andre Delfino
Kaydeden (comit)
Inada Naoki
Nis 08, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Correct "inplace" with "in-place" (GH-10480)
üst
96be3400
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
typeobj.rst
Doc/c-api/typeobj.rst
+2
-2
operator.rst
Doc/library/operator.rst
+3
-3
No files found.
Doc/c-api/typeobj.rst
Dosyayı görüntüle @
f4efa312
...
...
@@ -2052,7 +2052,7 @@ Sequence Object Structures
signature. It should modify its first operand, and return it. This slot
may be left to *NULL*, in this case :c:func:`!PySequence_InPlaceConcat`
will fall back to :c:func:`PySequence_Concat`. It is also used by the
augmented assignment ``+=``, after trying numeric inplace addition
augmented assignment ``+=``, after trying numeric in
-
place addition
via the :c:member:`~PyNumberMethods.nb_inplace_add` slot.
.. c:member:: ssizeargfunc PySequenceMethods.sq_inplace_repeat
...
...
@@ -2061,7 +2061,7 @@ Sequence Object Structures
signature. It should modify its first operand, and return it. This slot
may be left to *NULL*, in this case :c:func:`!PySequence_InPlaceRepeat`
will fall back to :c:func:`PySequence_Repeat`. It is also used by the
augmented assignment ``*=``, after trying numeric inplace multiplication
augmented assignment ``*=``, after trying numeric in
-
place multiplication
via the :c:member:`~PyNumberMethods.nb_inplace_multiply` slot.
...
...
Doc/library/operator.rst
Dosyayı görüntüle @
f4efa312
...
...
@@ -440,8 +440,8 @@ Python syntax and the functions in the :mod:`operator` module.
| Ordering | ``a > b`` | ``gt(a, b)`` |
+-----------------------+-------------------------+---------------------------------------+
Inplace Operators
-----------------
In
-
place Operators
-----------------
-
Many operations have an "in-place" version. Listed below are functions
providing a more primitive access to in-place operators than the usual syntax
...
...
@@ -464,7 +464,7 @@ value is computed, but not assigned back to the input variable:
>>> a
'hello'
For mutable targets such as lists and dictionaries, the inplace method
For mutable targets such as lists and dictionaries, the in
-
place method
will perform the update, so no subsequent assignment is necessary:
>>> s = ['h', 'e', 'l', 'l', 'o']
...
...
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