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
9193491e
Kaydet (Commit)
9193491e
authored
Şub 28, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make __future__ features similar for with and absolute import since they were both added before a1
üst
5e9f1fa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
__future__.py
Lib/__future__.py
+2
-2
No files found.
Lib/__future__.py
Dosyayı görüntüle @
9193491e
...
...
@@ -65,7 +65,7 @@ CO_NESTED = 0x0010 # nested_scopes
CO_GENERATOR_ALLOWED
=
0
# generators (obsolete, was 0x1000)
CO_FUTURE_DIVISION
=
0x2000
# division
CO_FUTURE_ABSIMPORT
=
0x4000
# absolute_import
CO_FUTURE_WITH_STATEMENT
=
0x8000
# with statement
added in 2.5
CO_FUTURE_WITH_STATEMENT
=
0x8000
# with statement
class
_Feature
:
def
__init__
(
self
,
optionalRelease
,
mandatoryRelease
,
compiler_flag
):
...
...
@@ -111,6 +111,6 @@ absolute_import = _Feature((2, 5, 0, "alpha", 1),
(
2
,
7
,
0
,
"alpha"
,
0
),
CO_FUTURE_ABSIMPORT
)
with_statement
=
_Feature
((
2
,
5
,
0
,
"alpha"
,
2
),
with_statement
=
_Feature
((
2
,
5
,
0
,
"alpha"
,
1
),
(
2
,
6
,
0
,
"alpha"
,
0
),
CO_FUTURE_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