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
a91a94b7
Kaydet (Commit)
a91a94b7
authored
Tem 30, 2010
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#4179: In pdb, allow "list ." as a command to return to the currently debugged line.
üst
b3b96bd5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
pdb.py
Lib/pdb.py
+3
-2
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/pdb.py
Dosyayı görüntüle @
a91a94b7
...
...
@@ -160,6 +160,7 @@ l(ist) [first [,last]]
List source code for the current file.
Without arguments, list 11 lines around the current line
or continue the previous listing.
With . as argument, list 11 lines around the current line.
With one argument, list 11 lines starting at that line.
With two arguments, list the given range;
if the second argument is less than the first, it is a count.
...
...
@@ -997,7 +998,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
def
do_list
(
self
,
arg
):
self
.
lastcmd
=
'list'
last
=
None
if
arg
:
if
arg
and
arg
!=
'.'
:
try
:
x
=
eval
(
arg
,
{},
{})
if
type
(
x
)
==
type
(()):
...
...
@@ -1012,7 +1013,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
except
:
print
(
'*** Error in argument:'
,
repr
(
arg
),
file
=
self
.
stdout
)
return
elif
self
.
lineno
is
None
:
elif
self
.
lineno
is
None
or
arg
==
'.'
:
first
=
max
(
1
,
self
.
curframe
.
f_lineno
-
5
)
else
:
first
=
self
.
lineno
+
1
...
...
Misc/NEWS
Dosyayı görüntüle @
a91a94b7
...
...
@@ -475,6 +475,9 @@ C-API
Library
-------
- Issue #4179: In pdb, allow "list ." as a command to return to the
currently debugged line.
- Issue #4108: In urllib.robotparser, if there are multiple 'User-agent: *'
entries, consider the first one.
...
...
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