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
62be3387
Unverified
Kaydet (Commit)
62be3387
authored
Mar 25, 2019
tarafından
Raymond Hettinger
Kaydeden (comit)
GitHub
Mar 25, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-36401: Have help() show readonly properties separately (GH-12517)
üst
113d735e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
pydoc.py
Lib/pydoc.py
+6
-0
test_enum.py
Lib/test/test_enum.py
+1
-1
2019-03-23-10-25-07.bpo-36401.hYpVBS.rst
...S.d/next/Library/2019-03-23-10-25-07.bpo-36401.hYpVBS.rst
+2
-0
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
62be3387
...
@@ -203,6 +203,8 @@ def classify_class_attrs(object):
...
@@ -203,6 +203,8 @@ def classify_class_attrs(object):
for
(
name
,
kind
,
cls
,
value
)
in
inspect
.
classify_class_attrs
(
object
):
for
(
name
,
kind
,
cls
,
value
)
in
inspect
.
classify_class_attrs
(
object
):
if
inspect
.
isdatadescriptor
(
value
):
if
inspect
.
isdatadescriptor
(
value
):
kind
=
'data descriptor'
kind
=
'data descriptor'
if
isinstance
(
value
,
property
)
and
value
.
fset
is
None
:
kind
=
'readonly property'
results
.
append
((
name
,
kind
,
cls
,
value
))
results
.
append
((
name
,
kind
,
cls
,
value
))
return
results
return
results
...
@@ -884,6 +886,8 @@ class HTMLDoc(Doc):
...
@@ -884,6 +886,8 @@ class HTMLDoc(Doc):
lambda
t
:
t
[
1
]
==
'class method'
)
lambda
t
:
t
[
1
]
==
'class method'
)
attrs
=
spill
(
'Static methods
%
s'
%
tag
,
attrs
,
attrs
=
spill
(
'Static methods
%
s'
%
tag
,
attrs
,
lambda
t
:
t
[
1
]
==
'static method'
)
lambda
t
:
t
[
1
]
==
'static method'
)
attrs
=
spilldescriptors
(
"Readonly properties
%
s:
\n
"
%
tag
,
attrs
,
lambda
t
:
t
[
1
]
==
'readonly property'
)
attrs
=
spilldescriptors
(
'Data descriptors
%
s'
%
tag
,
attrs
,
attrs
=
spilldescriptors
(
'Data descriptors
%
s'
%
tag
,
attrs
,
lambda
t
:
t
[
1
]
==
'data descriptor'
)
lambda
t
:
t
[
1
]
==
'data descriptor'
)
attrs
=
spilldata
(
'Data and other attributes
%
s'
%
tag
,
attrs
,
attrs
=
spilldata
(
'Data and other attributes
%
s'
%
tag
,
attrs
,
...
@@ -1341,6 +1345,8 @@ location listed above.
...
@@ -1341,6 +1345,8 @@ location listed above.
lambda
t
:
t
[
1
]
==
'class method'
)
lambda
t
:
t
[
1
]
==
'class method'
)
attrs
=
spill
(
"Static methods
%
s:
\n
"
%
tag
,
attrs
,
attrs
=
spill
(
"Static methods
%
s:
\n
"
%
tag
,
attrs
,
lambda
t
:
t
[
1
]
==
'static method'
)
lambda
t
:
t
[
1
]
==
'static method'
)
attrs
=
spilldescriptors
(
"Readonly properties
%
s:
\n
"
%
tag
,
attrs
,
lambda
t
:
t
[
1
]
==
'readonly property'
)
attrs
=
spilldescriptors
(
"Data descriptors
%
s:
\n
"
%
tag
,
attrs
,
attrs
=
spilldescriptors
(
"Data descriptors
%
s:
\n
"
%
tag
,
attrs
,
lambda
t
:
t
[
1
]
==
'data descriptor'
)
lambda
t
:
t
[
1
]
==
'data descriptor'
)
attrs
=
spilldata
(
"Data and other attributes
%
s:
\n
"
%
tag
,
attrs
,
attrs
=
spilldata
(
"Data and other attributes
%
s:
\n
"
%
tag
,
attrs
,
...
...
Lib/test/test_enum.py
Dosyayı görüntüle @
62be3387
...
@@ -2825,7 +2825,7 @@ class Color(enum.Enum)
...
@@ -2825,7 +2825,7 @@ class Color(enum.Enum)
| The value of the Enum member.
| The value of the Enum member.
|
\x20\x20
|
\x20\x20
| ----------------------------------------------------------------------
| ----------------------------------------------------------------------
|
Data descriptor
s inherited from enum.EnumMeta:
|
Readonly propertie
s inherited from enum.EnumMeta:
|
\x20\x20
|
\x20\x20
| __members__
| __members__
| Returns a mapping of member name->value.
| Returns a mapping of member name->value.
...
...
Misc/NEWS.d/next/Library/2019-03-23-10-25-07.bpo-36401.hYpVBS.rst
0 → 100644
Dosyayı görüntüle @
62be3387
The class documentation created by pydoc now has a separate section for
readonly properties.
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