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
418a1ef0
Kaydet (Commit)
418a1ef0
authored
Şub 22, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RFE #1436243: make integers in [0..256] preallocated.
üst
df431657
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
test_types.py
Lib/test/test_types.py
+4
-0
intobject.c
Objects/intobject.c
+1
-1
No files found.
Lib/test/test_types.py
Dosyayı görüntüle @
418a1ef0
...
@@ -90,6 +90,10 @@ else: raise TestFailed, 'long() does not round properly'
...
@@ -90,6 +90,10 @@ else: raise TestFailed, 'long() does not round properly'
if
float
(
1
)
==
1.0
and
float
(
-
1
)
==
-
1.0
and
float
(
0
)
==
0.0
:
pass
if
float
(
1
)
==
1.0
and
float
(
-
1
)
==
-
1.0
and
float
(
0
)
==
0.0
:
pass
else
:
raise
TestFailed
,
'float() does not work properly'
else
:
raise
TestFailed
,
'float() does not work properly'
print
'6.4.1 32-bit integers'
print
'6.4.1 32-bit integers'
# Ensure the first 256 integers are shared
a
=
256
b
=
128
*
2
if
a
is
not
b
:
raise
TestFailed
,
'256 is not shared'
if
12
+
24
!=
36
:
raise
TestFailed
,
'int op'
if
12
+
24
!=
36
:
raise
TestFailed
,
'int op'
if
12
+
(
-
24
)
!=
-
12
:
raise
TestFailed
,
'int op'
if
12
+
(
-
24
)
!=
-
12
:
raise
TestFailed
,
'int op'
if
(
-
12
)
+
24
!=
12
:
raise
TestFailed
,
'int op'
if
(
-
12
)
+
24
!=
12
:
raise
TestFailed
,
'int op'
...
...
Objects/intobject.c
Dosyayı görüntüle @
418a1ef0
...
@@ -62,7 +62,7 @@ fill_free_list(void)
...
@@ -62,7 +62,7 @@ fill_free_list(void)
}
}
#ifndef NSMALLPOSINTS
#ifndef NSMALLPOSINTS
#define NSMALLPOSINTS
100
#define NSMALLPOSINTS
257
#endif
#endif
#ifndef NSMALLNEGINTS
#ifndef NSMALLNEGINTS
#define NSMALLNEGINTS 5
#define NSMALLNEGINTS 5
...
...
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