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
f6348f45
Kaydet (Commit)
f6348f45
authored
Agu 28, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
restricted environments are no more
üst
7a7739d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
new.py
Lib/new.py
+1
-5
types.py
Lib/types.py
+1
-5
No files found.
Lib/new.py
Dosyayı görüntüle @
f6348f45
...
...
@@ -14,8 +14,4 @@ from types import InstanceType as instance
from
types
import
MethodType
as
instancemethod
from
types
import
ModuleType
as
module
# CodeType is not accessible in restricted execution mode
try
:
from
types
import
CodeType
as
code
except
ImportError
:
pass
from
types
import
CodeType
as
code
Lib/types.py
Dosyayı görüntüle @
f6348f45
...
...
@@ -42,11 +42,7 @@ DictType = DictionaryType = dict
def
_f
():
pass
FunctionType
=
type
(
_f
)
LambdaType
=
type
(
lambda
:
None
)
# Same as FunctionType
try
:
CodeType
=
type
(
_f
.
func_code
)
except
RuntimeError
:
# Execution in restricted environment
pass
CodeType
=
type
(
_f
.
func_code
)
def
_g
():
yield
1
...
...
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