[issue26051] Non-data descriptors in pydoc

2016-08-31 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
nosy: +rhettinger
priority: normal -> low
type:  -> enhancement
versions:  -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26051] Non-data descriptors in pydoc

2016-08-31 Thread Ethan Furman

Changes by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26051] Non-data descriptors in pydoc

2016-01-08 Thread Antony Lee

New submission from Antony Lee:

Consider the following minimal example:

class readonlyprop:
__init__ = lambda self, func: None
__get__ = lambda self, inst, cls=None: None

class C:
def bar(self):
pass
@readonlyprop
def foo(self):
pass
def quux(self):
pass

the output of `pydoc modname.C` is

<... cropped ...>
modname.C = class C(builtins.object)
|  Methods defined here:
|  
|  bar(self)
|  
|  foo = None
|  quux(self)
|  
|  --
|  Data descriptors defined here:
<... cropped ...>

It would be nice if
1. a newline was added after `foo = None`, and
2. foo was *also* marked as being a non-data-descriptor of class readonlyprop 
(basically what you'd get without invoking the __get__).

--
assignee: docs@python
components: Documentation
messages: 257782
nosy: Antony.Lee, docs@python
priority: normal
severity: normal
status: open
title: Non-data descriptors in pydoc
versions: Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com