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
96f2184d
Kaydet (Commit)
96f2184d
authored
Ock 19, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Indentation normalization.
üst
a7d70fd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
complexobject.c
Objects/complexobject.c
+8
-8
No files found.
Objects/complexobject.c
Dosyayı görüntüle @
96f2184d
...
...
@@ -489,7 +489,7 @@ complex_classic_div(PyComplexObject *v, PyComplexObject *w)
static
PyObject
*
complex_remainder
(
PyComplexObject
*
v
,
PyComplexObject
*
w
)
{
Py_complex
div
,
mod
;
Py_complex
div
,
mod
;
if
(
PyErr_Warn
(
PyExc_DeprecationWarning
,
"complex divmod(), // and % are deprecated"
)
<
0
)
...
...
@@ -512,7 +512,7 @@ complex_remainder(PyComplexObject *v, PyComplexObject *w)
static
PyObject
*
complex_divmod
(
PyComplexObject
*
v
,
PyComplexObject
*
w
)
{
Py_complex
div
,
mod
;
Py_complex
div
,
mod
;
PyObject
*
d
,
*
m
,
*
z
;
if
(
PyErr_Warn
(
PyExc_DeprecationWarning
,
...
...
@@ -543,8 +543,8 @@ complex_pow(PyObject *v, PyObject *w, PyObject *z)
Py_complex
exponent
;
long
int_exponent
;
Py_complex
a
,
b
;
TO_COMPLEX
(
v
,
a
);
TO_COMPLEX
(
w
,
b
);
TO_COMPLEX
(
v
,
a
);
TO_COMPLEX
(
w
,
b
);
if
(
z
!=
Py_None
)
{
PyErr_SetString
(
PyExc_ValueError
,
"complex modulo"
);
...
...
@@ -809,11 +809,11 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
start
=
s
;
while
(
*
s
&&
isspace
(
Py_CHARMASK
(
*
s
)))
s
++
;
if
(
s
[
0
]
==
'\0'
)
{
if
(
s
[
0
]
==
'\0'
)
{
PyErr_SetString
(
PyExc_ValueError
,
"complex() arg is an empty string"
);
return
NULL
;
}
}
if
(
s
[
0
]
==
'('
)
{
/* Skip over possible bracket from repr(). */
got_bracket
=
1
;
...
...
@@ -973,7 +973,7 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
"complex() can't take second arg"
" if first is a string"
);
return
NULL
;
}
}
return
complex_subtype_from_string
(
type
,
r
);
}
if
(
i
!=
NULL
&&
(
PyString_Check
(
i
)
||
PyUnicode_Check
(
i
)))
{
...
...
@@ -1051,7 +1051,7 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
return
NULL
;
}
cr
.
real
=
PyFloat_AsDouble
(
tmp
);
cr
.
imag
=
0
.
0
;
/* Shut up compiler warning */
cr
.
imag
=
0
.
0
;
/* Shut up compiler warning */
Py_DECREF
(
tmp
);
}
if
(
i
==
NULL
)
{
...
...
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