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
6cdcdbcd
Kaydet (Commit)
6cdcdbcd
authored
Mar 13, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1542681: add entries for "with", "as" and "CONTEXTMANAGERS" to
pydoc's help keywords. (backport from rev. 54329)
üst
0a24d105
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
pydoc.py
Lib/pydoc.py
+3
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
6cdcdbcd
...
...
@@ -1504,6 +1504,7 @@ def writedocs(dir, pkgpath='', done=None):
class
Helper
:
keywords
=
{
'and'
:
'BOOLEAN'
,
'as'
:
'with'
,
'assert'
:
(
'ref/assert'
,
''
),
'break'
:
(
'ref/break'
,
'while for'
),
'class'
:
(
'ref/class'
,
'CLASSES SPECIALMETHODS'
),
...
...
@@ -1531,6 +1532,7 @@ class Helper:
'return'
:
(
'ref/return'
,
'FUNCTIONS'
),
'try'
:
(
'ref/try'
,
'EXCEPTIONS'
),
'while'
:
(
'ref/while'
,
'break continue if TRUTHVALUE'
),
'with'
:
(
'ref/with'
,
'CONTEXTMANAGERS EXCEPTIONS yield'
),
'yield'
:
(
'ref/yield'
,
''
),
}
...
...
@@ -1612,6 +1614,7 @@ class Helper:
'LOOPING'
:
(
'ref/compound'
,
'for while break continue'
),
'TRUTHVALUE'
:
(
'lib/truth'
,
'if while and or not BASICMETHODS'
),
'DEBUGGING'
:
(
'lib/module-pdb'
,
'pdb'
),
'CONTEXTMANAGERS'
:
(
'ref/context-managers'
,
'with'
),
}
def
__init__
(
self
,
input
,
output
):
...
...
Misc/NEWS
Dosyayı görüntüle @
6cdcdbcd
...
...
@@ -202,6 +202,9 @@ Extension Modules
Library
-------
-
Patch
#
1542681
:
add
entries
for
"with"
,
"as"
and
"CONTEXTMANAGERS"
to
pydoc
's help keywords.
- Patch #1192590: Fix pdb'
s
"ignore"
and
"condition"
commands
so
they
trap
the
IndexError
caused
by
passing
in
an
invalid
breakpoint
number
.
...
...
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