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
b90f52e9
Kaydet (Commit)
b90f52e9
authored
Agu 25, 2007
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Revert compile.c changes that shouldn't have been included in previous checkin
üst
3af0e785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
compile.c
Python/compile.c
+2
-7
No files found.
Python/compile.c
Dosyayı görüntüle @
b90f52e9
...
...
@@ -1616,14 +1616,10 @@ compiler_while(struct compiler *c, stmt_ty s)
orelse
=
NULL
;
ADDOP_JREL
(
c
,
SETUP_LOOP
,
end
);
compiler_use_next_block
(
c
,
loop
);
if
(
!
compiler_push_fblock
(
c
,
LOOP
,
loop
))
return
0
;
compiler_use_next_block
(
c
,
loop
);
if
(
constant
==
-
1
)
{
/* XXX(ncoghlan): SF bug #1750076
Use same special casing as is used in for loops
A test case for this would be nice... */
c
->
u
->
u_lineno_set
=
false
;
VISIT
(
c
,
expr
,
s
->
v
.
While
.
test
);
ADDOP_JREL
(
c
,
JUMP_IF_FALSE
,
anchor
);
ADDOP
(
c
,
POP_TOP
);
...
...
@@ -3525,8 +3521,7 @@ assemble_lnotab(struct assembler *a, struct instr *i)
/* XXX(nnorwitz): is there a better way to handle this?
for loops are special, we want to be able to trace them
each time around, so we need to set an extra line number. */
/* XXX(ncoghlan): while loops need this too */
if
(
d_lineno
==
0
)
if
(
d_lineno
==
0
&&
i
->
i_opcode
!=
FOR_ITER
)
return
1
;
if
(
d_bytecode
>
255
)
{
...
...
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