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
0a20bbf6
Kaydet (Commit)
0a20bbf6
authored
Ock 28, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #26202: copy.deepcopy() now correctly copies range() objects with
non-atomic attributes.
üst
d5db5739
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
copy.py
Lib/copy.py
+0
-1
test_copy.py
Lib/test/test_copy.py
+12
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/copy.py
Dosyayı görüntüle @
0a20bbf6
...
@@ -207,7 +207,6 @@ try:
...
@@ -207,7 +207,6 @@ try:
except
AttributeError
:
except
AttributeError
:
pass
pass
d
[
type
]
=
_deepcopy_atomic
d
[
type
]
=
_deepcopy_atomic
d
[
range
]
=
_deepcopy_atomic
d
[
types
.
BuiltinFunctionType
]
=
_deepcopy_atomic
d
[
types
.
BuiltinFunctionType
]
=
_deepcopy_atomic
d
[
types
.
FunctionType
]
=
_deepcopy_atomic
d
[
types
.
FunctionType
]
=
_deepcopy_atomic
d
[
weakref
.
ref
]
=
_deepcopy_atomic
d
[
weakref
.
ref
]
=
_deepcopy_atomic
...
...
Lib/test/test_copy.py
Dosyayı görüntüle @
0a20bbf6
...
@@ -314,7 +314,7 @@ class TestCopy(unittest.TestCase):
...
@@ -314,7 +314,7 @@ class TestCopy(unittest.TestCase):
pass
pass
tests
=
[
None
,
42
,
2
**
100
,
3.14
,
True
,
False
,
1
j
,
tests
=
[
None
,
42
,
2
**
100
,
3.14
,
True
,
False
,
1
j
,
"hello"
,
"hello
\u1234
"
,
f
.
__code__
,
"hello"
,
"hello
\u1234
"
,
f
.
__code__
,
NewStyle
,
range
(
10
),
Classic
,
max
]
NewStyle
,
Classic
,
max
]
for
x
in
tests
:
for
x
in
tests
:
self
.
assertIs
(
copy
.
deepcopy
(
x
),
x
)
self
.
assertIs
(
copy
.
deepcopy
(
x
),
x
)
...
@@ -536,6 +536,17 @@ class TestCopy(unittest.TestCase):
...
@@ -536,6 +536,17 @@ class TestCopy(unittest.TestCase):
self
.
assertIsNot
(
y
,
x
)
self
.
assertIsNot
(
y
,
x
)
self
.
assertIs
(
y
.
foo
,
y
)
self
.
assertIs
(
y
.
foo
,
y
)
def
test_deepcopy_range
(
self
):
class
I
(
int
):
pass
x
=
range
(
I
(
10
))
y
=
copy
.
deepcopy
(
x
)
self
.
assertIsNot
(
y
,
x
)
self
.
assertEqual
(
y
,
x
)
self
.
assertIsNot
(
y
.
stop
,
x
.
stop
)
self
.
assertEqual
(
y
.
stop
,
x
.
stop
)
self
.
assertIsInstance
(
y
.
stop
,
I
)
# _reconstruct()
# _reconstruct()
def
test_reconstruct_string
(
self
):
def
test_reconstruct_string
(
self
):
...
...
Misc/NEWS
Dosyayı görüntüle @
0a20bbf6
...
@@ -66,6 +66,9 @@ Core and Builtins
...
@@ -66,6 +66,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #26202: copy.deepcopy() now correctly copies range() objects with
non-atomic attributes.
- Issue #19883: Fixed possible integer overflows in zipimport.
- Issue #19883: Fixed possible integer overflows in zipimport.
- Issue #26227: On Windows, getnameinfo(), gethostbyaddr() and
- Issue #26227: On Windows, getnameinfo(), gethostbyaddr() and
...
...
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