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
94fb82e4
Kaydet (Commit)
94fb82e4
authored
Nis 05, 1992
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Only * can be used for varargs argument lists
üst
8dd79cf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
compile.c
Python/compile.c
+8
-4
No files found.
Python/compile.c
Dosyayı görüntüle @
94fb82e4
/***********************************************************
Copyright 1991 by Stichting Mathematisch Centrum, Amsterdam, The
Copyright 1991
, 1992
by Stichting Mathematisch Centrum, Amsterdam, The
Netherlands.
All Rights Reserved
...
...
@@ -1566,7 +1566,11 @@ com_try_stmt(c, n)
int
finally_anchor
=
0
;
int
except_anchor
=
0
;
REQ
(
n
,
try_stmt
);
/* 'try' ':' suite (except_clause ':' suite)* ['finally' ':' suite] */
/* 'try' ':' suite (except_clause ':' suite)*
| 'try' ':' 'finally' ':' suite */
/* XXX This can be simplified because except and finally can
no longer be mixed in a single try statement */
if
(
NCH
(
n
)
>
3
&&
TYPE
(
CHILD
(
n
,
NCH
(
n
)
-
3
))
!=
except_clause
)
{
/* Have a 'finally' clause */
...
...
@@ -1958,12 +1962,12 @@ com_arglist(c, n)
int
i
,
nargs
,
op
;
REQ
(
n
,
varargslist
);
/* varargslist:
(fpdef ',')*
('+'|'*')
NAME | fpdef (',' fpdef)* [','] */
(fpdef ',')*
'*'
NAME | fpdef (',' fpdef)* [','] */
op
=
UNPACK_ARG
;
nargs
=
(
NCH
(
n
)
+
1
)
/
2
;
for
(
i
=
0
;
i
<
NCH
(
n
);
i
+=
2
)
{
int
t
=
TYPE
(
CHILD
(
n
,
i
));
if
(
t
==
PLUS
||
t
==
STAR
)
{
if
(
t
==
STAR
)
{
op
=
UNPACK_VARARG
;
nargs
=
i
/
2
;
break
;
...
...
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