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
7edd8d3c
Kaydet (Commit)
7edd8d3c
authored
Eki 09, 1996
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
(partparse.py): Rationalize some behavior around unexpected conditions.
üst
e1980ed1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
partparse.py
Doc/partparse.py
+7
-4
partparse.py
Doc/tools/partparse.py
+7
-4
No files found.
Doc/partparse.py
Dosyayı görüntüle @
7edd8d3c
...
...
@@ -1047,7 +1047,7 @@ def do_funcdesc(length, buf, pp, i):
hist
.
inargs
=
save
del
save
the_args
=
[
chunk
(
PLAIN
,
wh
,
'()'
[
0
])]
+
pp
[
i
:
newi
]
+
\
[
chunk
(
PLAIN
,
wh
,
'()'
[
1
])]
[
chunk
(
PLAIN
,
wh
,
'()'
[
1
])]
del
pp
[
i
:
newi
]
length
=
length
-
(
newi
-
i
)
...
...
@@ -1157,9 +1157,9 @@ def do_datadesc(length, buf, pp, i):
cat_class
=
'data'
class_class
=
string
.
join
(
idxsi
[
2
:])
if
not
command
:
raise
error
,
'don
\'
t know what to do with indexsubitem '
+
`idxsi`
return
length
,
i
#raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *)
ch
.
chtype
=
chunk_type
[
CSLINE
]
ch
.
data
=
command
...
...
@@ -1522,8 +1522,11 @@ def changeit(buf, pp):
elif
len
(
idxsi
)
>=
2
and
idxsi
[
1
]
in
\
(
'exception'
,
'object'
):
command
=
'vindex'
elif
len
(
idxsi
)
==
3
and
idxsi
[:
2
]
==
[
'in'
,
'module'
]:
command
=
'cindex'
else
:
print
'WARNING: can
\'
t categorize '
+
`idxsi`
+
' for
\'
ttindex
\'
command'
print
'WARNING: can
\'
t categorize '
+
`idxsi`
\
+
' for
\'
ttindex
\'
command'
command
=
'cindex'
if
not
cat_class
:
...
...
Doc/tools/partparse.py
Dosyayı görüntüle @
7edd8d3c
...
...
@@ -1047,7 +1047,7 @@ def do_funcdesc(length, buf, pp, i):
hist
.
inargs
=
save
del
save
the_args
=
[
chunk
(
PLAIN
,
wh
,
'()'
[
0
])]
+
pp
[
i
:
newi
]
+
\
[
chunk
(
PLAIN
,
wh
,
'()'
[
1
])]
[
chunk
(
PLAIN
,
wh
,
'()'
[
1
])]
del
pp
[
i
:
newi
]
length
=
length
-
(
newi
-
i
)
...
...
@@ -1157,9 +1157,9 @@ def do_datadesc(length, buf, pp, i):
cat_class
=
'data'
class_class
=
string
.
join
(
idxsi
[
2
:])
if
not
command
:
raise
error
,
'don
\'
t know what to do with indexsubitem '
+
`idxsi`
return
length
,
i
#raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *)
ch
.
chtype
=
chunk_type
[
CSLINE
]
ch
.
data
=
command
...
...
@@ -1522,8 +1522,11 @@ def changeit(buf, pp):
elif
len
(
idxsi
)
>=
2
and
idxsi
[
1
]
in
\
(
'exception'
,
'object'
):
command
=
'vindex'
elif
len
(
idxsi
)
==
3
and
idxsi
[:
2
]
==
[
'in'
,
'module'
]:
command
=
'cindex'
else
:
print
'WARNING: can
\'
t categorize '
+
`idxsi`
+
' for
\'
ttindex
\'
command'
print
'WARNING: can
\'
t categorize '
+
`idxsi`
\
+
' for
\'
ttindex
\'
command'
command
=
'cindex'
if
not
cat_class
:
...
...
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