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
73a9eade
Kaydet (Commit)
73a9eade
authored
Tem 18, 2006
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
426f4a1c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
decimal.py
Lib/decimal.py
+6
-6
subprocess.py
Lib/subprocess.py
+1
-1
test_dis.py
Lib/test/test_dis.py
+4
-4
No files found.
Lib/decimal.py
Dosyayı görüntüle @
73a9eade
...
...
@@ -165,7 +165,7 @@ class DecimalException(ArithmeticError):
"""
def
handle
(
self
,
context
,
*
args
):
"""Called when context._raise_error is called and trap_enabler is set.
First argument is self, second is the context. More arguments can
be given, those being after the explanation in _raise_error (For
example, context._raise_error(NewError, '(-x)!', self._sign) would
...
...
@@ -2258,9 +2258,9 @@ class Context(object):
s
.
append
(
'Context(prec=
%(prec)
d, rounding=
%(rounding)
s, Emin=
%(Emin)
d, Emax=
%(Emax)
d, capitals=
%(capitals)
d'
%
vars
(
self
))
s
.
append
(
'flags=['
+
', '
.
join
([
f
.
__name__
for
f
,
v
s
.
append
(
'flags=['
+
', '
.
join
([
f
.
__name__
for
f
,
v
in
self
.
flags
.
items
()
if
v
])
+
']'
)
s
.
append
(
'traps=['
+
', '
.
join
([
t
.
__name__
for
t
,
v
s
.
append
(
'traps=['
+
', '
.
join
([
t
.
__name__
for
t
,
v
in
self
.
traps
.
items
()
if
v
])
+
']'
)
return
', '
.
join
(
s
)
+
')'
...
...
@@ -2281,7 +2281,7 @@ class Context(object):
def
copy
(
self
):
"""Returns a deep copy from self."""
nc
=
Context
(
self
.
prec
,
self
.
rounding
,
self
.
traps
.
copy
(),
nc
=
Context
(
self
.
prec
,
self
.
rounding
,
self
.
traps
.
copy
(),
self
.
flags
.
copy
(),
self
.
_rounding_decision
,
self
.
Emin
,
self
.
Emax
,
self
.
capitals
,
self
.
_clamp
,
self
.
_ignored_flags
)
...
...
@@ -2701,7 +2701,7 @@ class Context(object):
"""Returns the remainder from integer division.
The result is the residue of the dividend after the operation of
calculating integer division as described for divide-integer, rounded
calculating integer division as described for divide-integer, rounded
to precision digits if necessary. The sign of the result, if non-zero,
is the same as that of the original dividend.
...
...
@@ -3077,7 +3077,7 @@ del re
def
_string2exact
(
s
):
"""Return sign, n, p s.t.
Float string value == -1**sign * n * 10**p exactly
"""
m
=
_parser
(
s
)
...
...
Lib/subprocess.py
Dosyayı görüntüle @
73a9eade
...
...
@@ -369,7 +369,7 @@ class CalledProcessError(Exception):
self
.
cmd
=
cmd
def
__str__
(
self
):
return
"Command '
%
s' returned non-zero exit status
%
d"
%
(
self
.
cmd
,
self
.
returncode
)
if
mswindows
:
import
threading
...
...
Lib/test/test_dis.py
Dosyayı görüntüle @
73a9eade
...
...
@@ -133,10 +133,10 @@ class DisTests(unittest.TestCase):
def
test_big_linenos
(
self
):
def
func
(
count
):
namespace
=
{}
func
=
"def foo():
\n
"
+
""
.
join
([
"
\n
"
]
*
count
+
[
"spam
\n
"
])
exec
func
in
namespace
return
namespace
[
'foo'
]
namespace
=
{}
func
=
"def foo():
\n
"
+
""
.
join
([
"
\n
"
]
*
count
+
[
"spam
\n
"
])
exec
func
in
namespace
return
namespace
[
'foo'
]
# Test all small ranges
for
i
in
xrange
(
1
,
300
):
...
...
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