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
c95c93d4
Unverified
Kaydet (Commit)
c95c93d4
authored
May 24, 2019
tarafından
Cheryl Sabella
Kaydeden (comit)
GitHub
May 24, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-20285: Improve help docs for object (GH-4759)
üst
f1e17e9f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
pydoc.py
Lib/pydoc.py
+2
-2
2017-12-08-20-30-37.bpo-20285.cfnp0J.rst
...xt/Documentation/2017-12-08-20-30-37.bpo-20285.cfnp0J.rst
+3
-0
typeobject.c
Objects/typeobject.c
+6
-1
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
c95c93d4
...
@@ -867,7 +867,7 @@ class HTMLDoc(Doc):
...
@@ -867,7 +867,7 @@ class HTMLDoc(Doc):
thisclass
=
attrs
[
0
][
2
]
thisclass
=
attrs
[
0
][
2
]
attrs
,
inherited
=
_split_list
(
attrs
,
lambda
t
:
t
[
2
]
is
thisclass
)
attrs
,
inherited
=
_split_list
(
attrs
,
lambda
t
:
t
[
2
]
is
thisclass
)
if
thisclass
is
builtins
.
object
:
if
object
is
not
builtins
.
object
and
thisclass
is
builtins
.
object
:
attrs
=
inherited
attrs
=
inherited
continue
continue
elif
thisclass
is
object
:
elif
thisclass
is
object
:
...
@@ -1327,7 +1327,7 @@ location listed above.
...
@@ -1327,7 +1327,7 @@ location listed above.
thisclass
=
attrs
[
0
][
2
]
thisclass
=
attrs
[
0
][
2
]
attrs
,
inherited
=
_split_list
(
attrs
,
lambda
t
:
t
[
2
]
is
thisclass
)
attrs
,
inherited
=
_split_list
(
attrs
,
lambda
t
:
t
[
2
]
is
thisclass
)
if
thisclass
is
builtins
.
object
:
if
object
is
not
builtins
.
object
and
thisclass
is
builtins
.
object
:
attrs
=
inherited
attrs
=
inherited
continue
continue
elif
thisclass
is
object
:
elif
thisclass
is
object
:
...
...
Misc/NEWS.d/next/Documentation/2017-12-08-20-30-37.bpo-20285.cfnp0J.rst
0 → 100644
Dosyayı görüntüle @
c95c93d4
Expand object.__doc__ (docstring) to make it clearer.
Modify pydoc.py so that help(object) lists object methods
(for other classes, help omits methods of the object base class.)
Objects/typeobject.c
Dosyayı görüntüle @
c95c93d4
...
@@ -4750,6 +4750,11 @@ static PyMethodDef object_methods[] = {
...
@@ -4750,6 +4750,11 @@ static PyMethodDef object_methods[] = {
{
0
}
{
0
}
};
};
PyDoc_STRVAR
(
object_doc
,
"object()
\n
--
\n\n
"
"The base class of the class hierarchy.
\n\n
"
"When called, it accepts no arguments and returns a new featureless
\n
"
"instance that has no instance attributes and cannot be given any.
\n
"
);
PyTypeObject
PyBaseObject_Type
=
{
PyTypeObject
PyBaseObject_Type
=
{
PyVarObject_HEAD_INIT
(
&
PyType_Type
,
0
)
PyVarObject_HEAD_INIT
(
&
PyType_Type
,
0
)
...
@@ -4772,7 +4777,7 @@ PyTypeObject PyBaseObject_Type = {
...
@@ -4772,7 +4777,7 @@ PyTypeObject PyBaseObject_Type = {
PyObject_GenericSetAttr
,
/* tp_setattro */
PyObject_GenericSetAttr
,
/* tp_setattro */
0
,
/* tp_as_buffer */
0
,
/* tp_as_buffer */
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
/* tp_flags */
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
/* tp_flags */
PyDoc_STR
(
"object()
\n
--
\n\n
The most base type"
),
/* tp_doc */
object_doc
,
/* tp_doc */
0
,
/* tp_traverse */
0
,
/* tp_traverse */
0
,
/* tp_clear */
0
,
/* tp_clear */
object_richcompare
,
/* tp_richcompare */
object_richcompare
,
/* tp_richcompare */
...
...
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