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
c7d484de
Kaydet (Commit)
c7d484de
authored
Ock 11, 2009
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove __long__ methods from UserString and from Demo/ classes.
üst
e97637da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
10 deletions
+0
-10
Complex.py
Demo/classes/Complex.py
+0
-6
bitvec.py
Demo/classes/bitvec.py
+0
-3
collections.py
Lib/collections.py
+0
-1
No files found.
Demo/classes/Complex.py
Dosyayı görüntüle @
c7d484de
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
#
#
# These conversions accept complex arguments only if their imaginary part is zero:
# These conversions accept complex arguments only if their imaginary part is zero:
# int(z)
# int(z)
# long(z)
# float(z)
# float(z)
#
#
# The following operators accept two complex numbers, or one complex number
# The following operators accept two complex numbers, or one complex number
...
@@ -147,11 +146,6 @@ class Complex:
...
@@ -147,11 +146,6 @@ class Complex:
raise
ValueError
(
"can't convert Complex with nonzero im to int"
)
raise
ValueError
(
"can't convert Complex with nonzero im to int"
)
return
int
(
self
.
re
)
return
int
(
self
.
re
)
def
__long__
(
self
):
if
self
.
im
:
raise
ValueError
(
"can't convert Complex with nonzero im to long"
)
return
int
(
self
.
re
)
def
__float__
(
self
):
def
__float__
(
self
):
if
self
.
im
:
if
self
.
im
:
raise
ValueError
(
"can't convert Complex with nonzero im to float"
)
raise
ValueError
(
"can't convert Complex with nonzero im to float"
)
...
...
Demo/classes/bitvec.py
Dosyayı görüntüle @
c7d484de
...
@@ -315,9 +315,6 @@ class BitVec:
...
@@ -315,9 +315,6 @@ class BitVec:
def
__int__
(
self
):
def
__int__
(
self
):
return
int
(
self
.
_data
)
return
int
(
self
.
_data
)
def
__long__
(
self
):
return
int
(
self
.
_data
)
def
__float__
(
self
):
def
__float__
(
self
):
return
float
(
self
.
_data
)
return
float
(
self
.
_data
)
...
...
Lib/collections.py
Dosyayı görüntüle @
c7d484de
...
@@ -255,7 +255,6 @@ class UserString(Sequence):
...
@@ -255,7 +255,6 @@ class UserString(Sequence):
def
__str__
(
self
):
return
str
(
self
.
data
)
def
__str__
(
self
):
return
str
(
self
.
data
)
def
__repr__
(
self
):
return
repr
(
self
.
data
)
def
__repr__
(
self
):
return
repr
(
self
.
data
)
def
__int__
(
self
):
return
int
(
self
.
data
)
def
__int__
(
self
):
return
int
(
self
.
data
)
def
__long__
(
self
):
return
int
(
self
.
data
)
def
__float__
(
self
):
return
float
(
self
.
data
)
def
__float__
(
self
):
return
float
(
self
.
data
)
def
__complex__
(
self
):
return
complex
(
self
.
data
)
def
__complex__
(
self
):
return
complex
(
self
.
data
)
def
__hash__
(
self
):
return
hash
(
self
.
data
)
def
__hash__
(
self
):
return
hash
(
self
.
data
)
...
...
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