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
84a449ab
Kaydet (Commit)
84a449ab
authored
Eyl 13, 2016
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #28104: More accurately document set method signatures
üst
87bcc1d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
stdtypes.rst
Doc/library/stdtypes.rst
+6
-6
No files found.
Doc/library/stdtypes.rst
Dosyayı görüntüle @
84a449ab
...
@@ -1874,7 +1874,7 @@ The constructors for both classes work the same:
...
@@ -1874,7 +1874,7 @@ The constructors for both classes work the same:
Test whether the set is a proper superset of *other*, that is, ``set >=
Test whether the set is a proper superset of *other*, that is, ``set >=
other and set != other``.
other and set != other``.
.. method:: union(
other, ...
)
.. method:: union(
*others
)
set | other | ...
set | other | ...
Return a new set with elements from the set and all others.
Return a new set with elements from the set and all others.
...
@@ -1882,7 +1882,7 @@ The constructors for both classes work the same:
...
@@ -1882,7 +1882,7 @@ The constructors for both classes work the same:
.. versionchanged:: 2.6
.. versionchanged:: 2.6
Accepts multiple input iterables.
Accepts multiple input iterables.
.. method:: intersection(
other, ...
)
.. method:: intersection(
*others
)
set & other & ...
set & other & ...
Return a new set with elements common to the set and all others.
Return a new set with elements common to the set and all others.
...
@@ -1890,7 +1890,7 @@ The constructors for both classes work the same:
...
@@ -1890,7 +1890,7 @@ The constructors for both classes work the same:
.. versionchanged:: 2.6
.. versionchanged:: 2.6
Accepts multiple input iterables.
Accepts multiple input iterables.
.. method:: difference(
other, ...
)
.. method:: difference(
*others
)
set - other - ...
set - other - ...
Return a new set with elements in the set that are not in the others.
Return a new set with elements in the set that are not in the others.
...
@@ -1944,7 +1944,7 @@ The constructors for both classes work the same:
...
@@ -1944,7 +1944,7 @@ The constructors for both classes work the same:
The following table lists operations available for :class:`set` that do not
The following table lists operations available for :class:`set` that do not
apply to immutable instances of :class:`frozenset`:
apply to immutable instances of :class:`frozenset`:
.. method:: update(
other, ...
)
.. method:: update(
*others
)
set |= other | ...
set |= other | ...
Update the set, adding elements from all others.
Update the set, adding elements from all others.
...
@@ -1952,7 +1952,7 @@ The constructors for both classes work the same:
...
@@ -1952,7 +1952,7 @@ The constructors for both classes work the same:
.. versionchanged:: 2.6
.. versionchanged:: 2.6
Accepts multiple input iterables.
Accepts multiple input iterables.
.. method:: intersection_update(
other, ...
)
.. method:: intersection_update(
*others
)
set &= other & ...
set &= other & ...
Update the set, keeping only elements found in it and all others.
Update the set, keeping only elements found in it and all others.
...
@@ -1960,7 +1960,7 @@ The constructors for both classes work the same:
...
@@ -1960,7 +1960,7 @@ The constructors for both classes work the same:
.. versionchanged:: 2.6
.. versionchanged:: 2.6
Accepts multiple input iterables.
Accepts multiple input iterables.
.. method:: difference_update(
other, ...
)
.. method:: difference_update(
*others
)
set -= other | ...
set -= other | ...
Update the set, removing elements found in others.
Update the set, removing elements found in others.
...
...
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