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
a6bb6be9
Kaydet (Commit)
a6bb6be9
authored
Mar 30, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Strip argument to atol and atof to match what strop does better.
üst
a08fabad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
string.py
Lib/string.py
+2
-2
stringold.py
Lib/stringold.py
+2
-2
No files found.
Lib/string.py
Dosyayı görüntüle @
a6bb6be9
...
@@ -374,7 +374,7 @@ def atoi(str, base=10):
...
@@ -374,7 +374,7 @@ def atoi(str, base=10):
# We only get here if strop doesn't define atoi()
# We only get here if strop doesn't define atoi()
raise
ValueError
,
"this string.atoi doesn't support base != 10"
raise
ValueError
,
"this string.atoi doesn't support base != 10"
sign
=
''
sign
=
''
s
=
str
s
=
str
ip
(
str
)
if
s
and
s
[
0
]
in
'+-'
:
if
s
and
s
[
0
]
in
'+-'
:
sign
=
s
[
0
]
sign
=
s
[
0
]
s
=
s
[
1
:]
s
=
s
[
1
:]
...
@@ -403,7 +403,7 @@ def atol(str, base=10):
...
@@ -403,7 +403,7 @@ def atol(str, base=10):
# We only get here if strop doesn't define atol()
# We only get here if strop doesn't define atol()
raise
ValueError
,
"this string.atol doesn't support base != 10"
raise
ValueError
,
"this string.atol doesn't support base != 10"
sign
=
''
sign
=
''
s
=
str
s
=
str
ip
(
str
)
if
s
and
s
[
0
]
in
'+-'
:
if
s
and
s
[
0
]
in
'+-'
:
sign
=
s
[
0
]
sign
=
s
[
0
]
s
=
s
[
1
:]
s
=
s
[
1
:]
...
...
Lib/stringold.py
Dosyayı görüntüle @
a6bb6be9
...
@@ -374,7 +374,7 @@ def atoi(str, base=10):
...
@@ -374,7 +374,7 @@ def atoi(str, base=10):
# We only get here if strop doesn't define atoi()
# We only get here if strop doesn't define atoi()
raise
ValueError
,
"this string.atoi doesn't support base != 10"
raise
ValueError
,
"this string.atoi doesn't support base != 10"
sign
=
''
sign
=
''
s
=
str
s
=
str
ip
(
str
)
if
s
and
s
[
0
]
in
'+-'
:
if
s
and
s
[
0
]
in
'+-'
:
sign
=
s
[
0
]
sign
=
s
[
0
]
s
=
s
[
1
:]
s
=
s
[
1
:]
...
@@ -403,7 +403,7 @@ def atol(str, base=10):
...
@@ -403,7 +403,7 @@ def atol(str, base=10):
# We only get here if strop doesn't define atol()
# We only get here if strop doesn't define atol()
raise
ValueError
,
"this string.atol doesn't support base != 10"
raise
ValueError
,
"this string.atol doesn't support base != 10"
sign
=
''
sign
=
''
s
=
str
s
=
str
ip
(
str
)
if
s
and
s
[
0
]
in
'+-'
:
if
s
and
s
[
0
]
in
'+-'
:
sign
=
s
[
0
]
sign
=
s
[
0
]
s
=
s
[
1
:]
s
=
s
[
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