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
d746768d
Kaydet (Commit)
d746768d
authored
Ock 10, 2009
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #4910: replace "long" with "int" in docstring for __long__ slot and
in documentation for PyNumber_Long.
üst
30bf1228
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
16 deletions
+7
-16
number.rst
Doc/c-api/number.rst
+4
-7
abstract.h
Include/abstract.h
+2
-8
typeobject.c
Objects/typeobject.c
+1
-1
No files found.
Doc/c-api/number.rst
Dosyayı görüntüle @
d746768d
...
@@ -230,19 +230,16 @@ Number Protocol
...
@@ -230,19 +230,16 @@ Number Protocol
.. cfunction:: PyObject* PyNumber_Int(PyObject *o)
.. cfunction:: PyObject* PyNumber_Int(PyObject *o)
.. index:: builtin: int
Returns the *o* converted to an integer object on success, or *NULL* on
failure. This is the equivalent of the Python expression ``int(o)``.
Returns the *o* converted to an integer object on success, or *NULL* on failure.
If the argument is outside the integer range a long object will be returned
instead. This is the equivalent of the Python expression ``int(o)``.
.. cfunction:: PyObject* PyNumber_Long(PyObject *o)
.. cfunction:: PyObject* PyNumber_Long(PyObject *o)
.. index:: builtin:
long
.. index:: builtin:
int
Returns the *o* converted to an integer object on success, or *NULL* on
Returns the *o* converted to an integer object on success, or *NULL* on
failure. This is the equivalent of the Python expression ``
long
(o)``.
failure. This is the equivalent of the Python expression ``
int
(o)``.
.. cfunction:: PyObject* PyNumber_Float(PyObject *o)
.. cfunction:: PyObject* PyNumber_Float(PyObject *o)
...
...
Include/abstract.h
Dosyayı görüntüle @
d746768d
...
@@ -808,20 +808,14 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
...
@@ -808,20 +808,14 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
#define PyNumber_Int PyNumber_Long
#define PyNumber_Int PyNumber_Long
PyAPI_FUNC
(
PyObject
*
)
PyNumber_Long
(
PyObject
*
o
);
/*
/*
Returns the o converted to an integer object on success, or
Returns the o converted to an integer object on success, or
NULL on failure. This is the equivalent of the Python
NULL on failure. This is the equivalent of the Python
expression: int(o).
expression: int(o).
*/
*/
PyAPI_FUNC
(
PyObject
*
)
PyNumber_Long
(
PyObject
*
o
);
/*
Returns the o converted to a long integer object on success,
or NULL on failure. This is the equivalent of the Python
expression: long(o).
*/
PyAPI_FUNC
(
PyObject
*
)
PyNumber_Float
(
PyObject
*
o
);
PyAPI_FUNC
(
PyObject
*
)
PyNumber_Float
(
PyObject
*
o
);
/*
/*
...
...
Objects/typeobject.c
Dosyayı görüntüle @
d746768d
...
@@ -5444,7 +5444,7 @@ static slotdef slotdefs[] = {
...
@@ -5444,7 +5444,7 @@ static slotdef slotdefs[] = {
UNSLOT
(
"__int__"
,
nb_int
,
slot_nb_int
,
wrap_unaryfunc
,
UNSLOT
(
"__int__"
,
nb_int
,
slot_nb_int
,
wrap_unaryfunc
,
"int(x)"
),
"int(x)"
),
UNSLOT
(
"__long__"
,
nb_long
,
slot_nb_long
,
wrap_unaryfunc
,
UNSLOT
(
"__long__"
,
nb_long
,
slot_nb_long
,
wrap_unaryfunc
,
"
long
(x)"
),
"
int
(x)"
),
UNSLOT
(
"__float__"
,
nb_float
,
slot_nb_float
,
wrap_unaryfunc
,
UNSLOT
(
"__float__"
,
nb_float
,
slot_nb_float
,
wrap_unaryfunc
,
"float(x)"
),
"float(x)"
),
NBSLOT
(
"__index__"
,
nb_index
,
slot_nb_index
,
wrap_unaryfunc
,
NBSLOT
(
"__index__"
,
nb_index
,
slot_nb_index
,
wrap_unaryfunc
,
...
...
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