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
2bbdba3c
Kaydet (Commit)
2bbdba3c
authored
Nis 12, 2002
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed more hair in support of future-generator stmts.
üst
68c7e26d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
compile.h
Include/compile.h
+1
-1
pythonrun.h
Include/pythonrun.h
+2
-2
future.c
Python/future.c
+1
-1
No files found.
Include/compile.h
Dosyayı görüntüle @
2bbdba3c
...
...
@@ -40,7 +40,7 @@ typedef struct {
compiled *by* a code object knows whether to allow yield stmts. In
effect, this passes on the "from __future__ import generators" state
in effect when the code block was compiled. */
#define CO_GENERATOR_ALLOWED 0x1000
#define CO_GENERATOR_ALLOWED 0x1000
/* no longer used in an essential way */
#define CO_FUTURE_DIVISION 0x2000
extern
DL_IMPORT
(
PyTypeObject
)
PyCode_Type
;
...
...
Include/pythonrun.h
Dosyayı görüntüle @
2bbdba3c
...
...
@@ -7,8 +7,8 @@
extern
"C"
{
#endif
#define PyCF_MASK (CO_
GENERATOR_ALLOWED | CO_
FUTURE_DIVISION)
#define PyCF_MASK_OBSOLETE (CO_NESTED)
#define PyCF_MASK (CO_FUTURE_DIVISION)
#define PyCF_MASK_OBSOLETE (CO_
GENERATOR_ALLOWED | CO_
NESTED)
typedef
struct
{
int
cf_flags
;
/* bitmask of CO_xxx flags relevant to future */
...
...
Python/future.c
Dosyayı görüntüle @
2bbdba3c
...
...
@@ -35,7 +35,7 @@ future_check_features(PyFutureFeatures *ff, node *n, char *filename)
if
(
strcmp
(
feature
,
FUTURE_NESTED_SCOPES
)
==
0
)
{
continue
;
}
else
if
(
strcmp
(
feature
,
FUTURE_GENERATORS
)
==
0
)
{
ff
->
ff_features
|=
CO_GENERATOR_ALLOWED
;
continue
;
}
else
if
(
strcmp
(
feature
,
FUTURE_DIVISION
)
==
0
)
{
ff
->
ff_features
|=
CO_FUTURE_DIVISION
;
}
else
if
(
strcmp
(
feature
,
"braces"
)
==
0
)
{
...
...
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