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
bc5fbd9f
Kaydet (Commit)
bc5fbd9f
authored
Tem 12, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1739696: use code.co_code only if really necessary
üst
f91149e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
inspect.py
Lib/inspect.py
+3
-4
No files found.
Lib/inspect.py
Dosyayı görüntüle @
bc5fbd9f
...
...
@@ -679,7 +679,6 @@ def getargs(co):
if
not
iscode
(
co
):
raise
TypeError
(
'arg is not a code object'
)
code
=
co
.
co_code
nargs
=
co
.
co_argcount
names
=
co
.
co_varnames
args
=
list
(
names
[:
nargs
])
...
...
@@ -689,12 +688,12 @@ def getargs(co):
for
i
in
range
(
nargs
):
if
args
[
i
][:
1
]
in
(
''
,
'.'
):
stack
,
remain
,
count
=
[],
[],
[]
while
step
<
len
(
code
):
op
=
ord
(
code
[
step
])
while
step
<
len
(
co
.
co_co
de
):
op
=
ord
(
co
.
co_co
de
[
step
])
step
=
step
+
1
if
op
>=
dis
.
HAVE_ARGUMENT
:
opname
=
dis
.
opname
[
op
]
value
=
ord
(
co
de
[
step
])
+
ord
(
code
[
step
+
1
])
*
256
value
=
ord
(
co
.
co_code
[
step
])
+
ord
(
co
.
co_
code
[
step
+
1
])
*
256
step
=
step
+
2
if
opname
in
(
'UNPACK_TUPLE'
,
'UNPACK_SEQUENCE'
):
remain
.
append
(
value
)
...
...
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