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
5ef74b8f
Kaydet (Commit)
5ef74b8f
authored
Haz 23, 1993
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pdb.py, bdb.py, cmd.py: use __init__() instead of init()
üst
5cfa5dfe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
bdb.py
Lib/bdb.py
+4
-2
cmd.py
Lib/cmd.py
+1
-1
pdb.py
Lib/pdb.py
+9
-7
No files found.
Lib/bdb.py
Dosyayı görüntüle @
5ef74b8f
...
...
@@ -13,8 +13,10 @@ BdbQuit = 'bdb.BdbQuit' # Exception to give up completely
class
Bdb
:
# Basic Debugger
def
init
(
self
):
def
__init__
(
self
):
self
.
breaks
=
{}
def
init
(
self
):
# BW compat only
return
self
def
reset
(
self
):
...
...
@@ -303,5 +305,5 @@ def bar(a):
def
test
():
import
linecache
linecache
.
checkcache
()
t
=
Tdb
()
.
init
()
t
=
Tdb
()
t
.
run
(
'import bdb; bdb.foo(10)'
)
Lib/cmd.py
Dosyayı görüntüle @
5ef74b8f
...
...
@@ -14,7 +14,7 @@ class Cmd:
self
.
identchars
=
IDENTCHARS
self
.
lastcmd
=
''
def
init
(
self
):
def
init
(
self
):
# BW compat only
return
self
def
cmdloop
(
self
):
...
...
Lib/pdb.py
Dosyayı görüntüle @
5ef74b8f
...
...
@@ -12,10 +12,12 @@ import repr
class
Pdb
(
bdb
.
Bdb
,
cmd
.
Cmd
):
def
init
(
self
):
self
=
bdb
.
Bdb
.
init
(
self
)
self
=
cmd
.
Cmd
.
init
(
self
)
def
__init__
(
self
):
bdb
.
Bdb
.
__init__
(
self
)
cmd
.
Cmd
.
__init__
(
self
)
self
.
prompt
=
'(Pdb) '
def
init
(
self
):
# BW compat only
return
self
def
reset
(
self
):
...
...
@@ -277,19 +279,19 @@ class Pdb(bdb.Bdb, cmd.Cmd):
# Simplified interface
def
run
(
statement
):
Pdb
()
.
init
()
.
run
(
statement
)
Pdb
()
.
run
(
statement
)
def
runctx
(
statement
,
globals
,
locals
):
Pdb
()
.
init
()
.
runctx
(
statement
,
globals
,
locals
)
Pdb
()
.
runctx
(
statement
,
globals
,
locals
)
def
runcall
(
*
args
):
apply
(
Pdb
()
.
init
()
.
runcall
,
args
)
apply
(
Pdb
()
.
runcall
,
args
)
# Post-Mortem interface
def
post_mortem
(
t
):
p
=
Pdb
()
.
init
()
p
=
Pdb
()
p
.
reset
()
while
t
.
tb_next
<>
None
:
t
=
t
.
tb_next
p
.
interaction
(
t
.
tb_frame
,
t
)
...
...
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