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
ebbf63b5
Kaydet (Commit)
ebbf63b5
authored
Eki 14, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#9964: Fix failure of test_dis under -OO.
üst
f93390a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
test_dis.py
Lib/test/test_dis.py
+13
-13
No files found.
Lib/test/test_dis.py
Dosyayı görüntüle @
ebbf63b5
...
...
@@ -19,8 +19,8 @@ dis_f = """\
%-4
d 10 LOAD_CONST 1 (1)
13 RETURN_VALUE
"""
%
(
_f
.
__code__
.
co_firstlineno
+
1
,
_f
.
__code__
.
co_firstlineno
+
2
)
"""
%
(
_f
.
__code__
.
co_firstlineno
+
1
,
_f
.
__code__
.
co_firstlineno
+
2
)
def
bug708901
():
...
...
@@ -43,9 +43,9 @@ dis_bug708901 = """\
>> 25 POP_BLOCK
>> 26 LOAD_CONST 0 (None)
29 RETURN_VALUE
"""
%
(
bug708901
.
__code__
.
co_firstlineno
+
1
,
bug708901
.
__code__
.
co_firstlineno
+
2
,
bug708901
.
__code__
.
co_firstlineno
+
3
)
"""
%
(
bug708901
.
__code__
.
co_firstlineno
+
1
,
bug708901
.
__code__
.
co_firstlineno
+
2
,
bug708901
.
__code__
.
co_firstlineno
+
3
)
def
bug1333982
(
x
=
[]):
...
...
@@ -74,9 +74,9 @@ dis_bug1333982 = """\
%-4
d 40 LOAD_CONST 0 (None)
43 RETURN_VALUE
"""
%
(
bug1333982
.
__code__
.
co_firstlineno
+
1
,
bug1333982
.
__code__
.
co_firstlineno
+
2
,
bug1333982
.
__code__
.
co_firstlineno
+
3
)
"""
%
(
bug1333982
.
__code__
.
co_firstlineno
+
1
,
bug1333982
.
__code__
.
co_firstlineno
+
2
,
bug1333982
.
__code__
.
co_firstlineno
+
3
)
_BIG_LINENO_FORMAT
=
"""
\
%3
d 0 LOAD_GLOBAL 0 (spam)
...
...
@@ -220,14 +220,13 @@ Number of locals: 1
Stack size: 4
Flags: OPTIMIZED, NEWLOCALS, NOFREE
Constants:
0:
'Formatted details of methods, functions, or code.'
0:
%
r
1: '__func__'
2: '__code__'
3: '<code_info>'
4: 'co_code'
5: "don't know how to disassemble
%
s objects"
6: None
Names:
5: "don't know how to disassemble
%%
s objects"
%
sNames:
0: hasattr
1: __func__
2: __code__
...
...
@@ -239,7 +238,8 @@ Names:
8: type
9: __name__
Variable names:
0: x"""
0: x"""
%
((
'Formatted details of methods, functions, or code.'
,
' 6: None
\n
'
)
if
sys
.
flags
.
optimize
<
2
else
(
None
,
''
))
@staticmethod
def
tricky
(
x
,
y
,
z
=
True
,
*
args
,
c
,
d
,
e
=
[],
**
kwds
):
...
...
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