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
eaed39f3
Kaydet (Commit)
eaed39f3
authored
Mar 03, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Hopefully this removes all vestiges of CO_GENERATOR_ALLOWED that can
be removed in 2.x.
üst
fa0cf4f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
consts.py
Lib/compiler/consts.py
+1
-1
pycodegen.py
Lib/compiler/pycodegen.py
+1
-3
No files found.
Lib/compiler/consts.py
Dosyayı görüntüle @
eaed39f3
...
...
@@ -15,7 +15,7 @@ CO_VARARGS = 0x0004
CO_VARKEYWORDS
=
0x0008
CO_NESTED
=
0x0010
CO_GENERATOR
=
0x0020
CO_GENERATOR_ALLOWED
=
0
x1000
CO_GENERATOR_ALLOWED
=
0
CO_FUTURE_DIVISION
=
0x2000
CO_FUTURE_ABSIMPORT
=
0x4000
CO_FUTURE_WITH_STATEMENT
=
0x8000
Lib/compiler/pycodegen.py
Dosyayı görüntüle @
eaed39f3
...
...
@@ -9,7 +9,7 @@ from compiler import ast, parse, walk, syntax
from
compiler
import
pyassem
,
misc
,
future
,
symbols
from
compiler.consts
import
SC_LOCAL
,
SC_GLOBAL
,
SC_FREE
,
SC_CELL
from
compiler.consts
import
(
CO_VARARGS
,
CO_VARKEYWORDS
,
CO_NEWLOCALS
,
CO_NESTED
,
CO_GENERATOR
,
CO_
GENERATOR_ALLOWED
,
CO_
FUTURE_DIVISION
,
CO_NESTED
,
CO_GENERATOR
,
CO_FUTURE_DIVISION
,
CO_FUTURE_ABSIMPORT
,
CO_FUTURE_WITH_STATEMENT
)
from
compiler.pyassem
import
TupleArg
...
...
@@ -214,8 +214,6 @@ class CodeGenerator:
if
feature
==
"division"
:
self
.
graph
.
setFlag
(
CO_FUTURE_DIVISION
)
self
.
_div_op
=
"BINARY_TRUE_DIVIDE"
elif
feature
==
"generators"
:
self
.
graph
.
setFlag
(
CO_GENERATOR_ALLOWED
)
elif
feature
==
"absolute_import"
:
self
.
graph
.
setFlag
(
CO_FUTURE_ABSIMPORT
)
elif
feature
==
"with_statement"
:
...
...
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