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
775c3070
Kaydet (Commit)
775c3070
authored
Ock 01, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#4222: document dis.findlabels() and dis.findlinestarts() and
put them into dis.__all__.
üst
2adde055
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
dis.rst
Doc/library/dis.rst
+15
-2
dis.py
Lib/dis.py
+2
-1
No files found.
Doc/library/dis.rst
Dosyayı görüntüle @
775c3070
...
...
@@ -64,10 +64,23 @@ The :mod:`dis` module defines the following functions and constants:
.. function:: disco(code[, lasti])
A synonym for
disassemble. It is more convenient to type, and kept for
compatibility with earlier Python releases.
A synonym for
:func:`disassemble`. It is more convenient to type, and kept
for
compatibility with earlier Python releases.
.. function:: findlinestarts(code)
This generator function uses the ``co_firstlineno`` and ``co_lnotab``
attributes of the code object *code* to find the offsets which are starts of
lines in the source code. They are generated as ``(offset, lineno)`` pairs.
.. function:: findlabels(code)
Detect all offsets in the code object *code* which are jump targets, and
return a list of these offsets.
.. data:: opname
Sequence of operation names, indexable using the bytecode.
...
...
Lib/dis.py
Dosyayı görüntüle @
775c3070
...
...
@@ -6,7 +6,8 @@ import types
from
opcode
import
*
from
opcode
import
__all__
as
_opcodes_all
__all__
=
[
"dis"
,
"disassemble"
,
"distb"
,
"disco"
]
+
_opcodes_all
__all__
=
[
"dis"
,
"disassemble"
,
"distb"
,
"disco"
,
"findlinestarts"
,
"findlabels"
]
+
_opcodes_all
del
_opcodes_all
def
dis
(
x
=
None
):
...
...
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