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
093b6706
Kaydet (Commit)
093b6706
authored
Ock 13, 2007
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecate the sets module.
üst
6fd4549b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
0 deletions
+15
-0
libsets.tex
Doc/lib/libsets.tex
+2
-0
sets.py
Lib/sets.py
+4
-0
test___all__.py
Lib/test/test___all__.py
+2
-0
test_sets.py
Lib/test/test_sets.py
+4
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/lib/libsets.tex
Dosyayı görüntüle @
093b6706
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
\sectionauthor
{
Raymond D. Hettinger
}{
python@rcn.com
}
\sectionauthor
{
Raymond D. Hettinger
}{
python@rcn.com
}
\versionadded
{
2.3
}
\versionadded
{
2.3
}
\deprecated
{
2.6
}{
The built-in
\code
{
set
}
/
\code
{
frozneset
}
types replace this
module.
}
The
\module
{
sets
}
module provides classes for constructing and manipulating
The
\module
{
sets
}
module provides classes for constructing and manipulating
unordered collections of unique elements. Common uses include membership
unordered collections of unique elements. Common uses include membership
...
...
Lib/sets.py
Dosyayı görüntüle @
093b6706
...
@@ -80,6 +80,10 @@ except ImportError:
...
@@ -80,6 +80,10 @@ except ImportError:
__all__
=
[
'BaseSet'
,
'Set'
,
'ImmutableSet'
]
__all__
=
[
'BaseSet'
,
'Set'
,
'ImmutableSet'
]
import
warnings
warnings
.
warn
(
"the sets module is deprecated"
,
DeprecationWarning
,
stacklevel
=
2
)
class
BaseSet
(
object
):
class
BaseSet
(
object
):
"""Common base class for mutable and immutable sets."""
"""Common base class for mutable and immutable sets."""
...
...
Lib/test/test___all__.py
Dosyayı görüntüle @
093b6706
...
@@ -9,6 +9,8 @@ warnings.filterwarnings("ignore",
...
@@ -9,6 +9,8 @@ warnings.filterwarnings("ignore",
"the gopherlib module is deprecated"
,
"the gopherlib module is deprecated"
,
DeprecationWarning
,
DeprecationWarning
,
"<string>"
)
"<string>"
)
warnings
.
filterwarnings
(
"ignore"
,
"the sets module is deprecated"
,
DeprecationWarning
,
"<string>"
)
class
AllTest
(
unittest
.
TestCase
):
class
AllTest
(
unittest
.
TestCase
):
...
...
Lib/test/test_sets.py
Dosyayı görüntüle @
093b6706
#!/usr/bin/env python
#!/usr/bin/env python
import
warnings
warnings
.
filterwarnings
(
"ignore"
,
"the sets module is deprecated"
,
DeprecationWarning
,
"test
\
.test_sets"
)
import
unittest
,
operator
,
copy
,
pickle
,
random
import
unittest
,
operator
,
copy
,
pickle
,
random
from
sets
import
Set
,
ImmutableSet
from
sets
import
Set
,
ImmutableSet
from
test
import
test_support
from
test
import
test_support
...
...
Misc/NEWS
Dosyayı görüntüle @
093b6706
...
@@ -109,6 +109,9 @@ Core and builtins
...
@@ -109,6 +109,9 @@ Core and builtins
Library
Library
-------
-------
-
The
sets
module
has
been
deprecated
.
Use
the
built
-
in
set
/
frozenset
types
instead
.
-
Bug
#
1610795
:
make
ctypes
.
util
.
find_library
work
on
BSD
systems
.
-
Bug
#
1610795
:
make
ctypes
.
util
.
find_library
work
on
BSD
systems
.
-
Fixes
for
64
-
bit
Windows
:
In
ctypes
.
wintypes
,
correct
the
-
Fixes
for
64
-
bit
Windows
:
In
ctypes
.
wintypes
,
correct
the
...
...
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