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
4c417786
Kaydet (Commit)
4c417786
authored
34 years ago
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix bug in input(); add comments to cases in compile().
üst
86cd6e64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
compile.c
Python/compile.c
+6
-7
No files found.
Python/compile.c
Dosyayı görüntüle @
4c417786
...
...
@@ -1680,7 +1680,7 @@ compile_node(c, n)
switch
(
TYPE
(
n
))
{
case
single_input
:
case
single_input
:
/* One interactive command */
/* NEWLINE | simple_stmt | compound_stmt NEWLINE */
com_addbyte
(
c
,
REFUSE_ARGS
);
n
=
CHILD
(
n
,
0
);
...
...
@@ -1690,31 +1690,30 @@ compile_node(c, n)
com_addbyte
(
c
,
RETURN_VALUE
);
break
;
case
file_input
:
case
file_input
:
/* A whole file, or built-in function exec() */
com_addbyte
(
c
,
REFUSE_ARGS
);
com_file_input
(
c
,
n
);
com_addoparg
(
c
,
LOAD_CONST
,
com_addconst
(
c
,
None
));
com_addbyte
(
c
,
RETURN_VALUE
);
break
;
case
expr_input
:
case
expr_input
:
/* Built-in function eval() */
com_addbyte
(
c
,
REFUSE_ARGS
);
com_node
(
c
,
CHILD
(
n
,
0
));
com_addoparg
(
c
,
LOAD_CONST
,
com_addconst
(
c
,
None
));
com_addbyte
(
c
,
RETURN_VALUE
);
break
;
case
eval_input
:
case
eval_input
:
/* Built-in function input() */
com_addbyte
(
c
,
REFUSE_ARGS
);
com_node
(
c
,
CHILD
(
n
,
0
));
com_addbyte
(
c
,
RETURN_VALUE
);
break
;
case
funcdef
:
case
funcdef
:
/* A function definition */
compile_funcdef
(
c
,
n
);
break
;
case
classdef
:
case
classdef
:
/* A class definition */
/* 'class' NAME parameters ['=' baselist] ':' suite */
com_addbyte
(
c
,
REFUSE_ARGS
);
com_node
(
c
,
CHILD
(
n
,
NCH
(
n
)
-
1
));
...
...
This diff is collapsed.
Click to expand it.
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