[issue34966] Pydoc: better support of method aliases

2018-11-07 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions:  -Python 2.7

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-11-07 Thread miss-islington


miss-islington  added the comment:


New changeset 11a33e171b89ea9267672b0664d739ca06e459ca by Miss Islington (bot) 
in branch '3.6':
bpo-34966: Improve support of method aliases in pydoc. (GH-9823)
https://github.com/python/cpython/commit/11a33e171b89ea9267672b0664d739ca06e459ca


--

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-11-07 Thread miss-islington


miss-islington  added the comment:


New changeset 9d3658147b56e24e96e174510b6ee91c8141e530 by Miss Islington (bot) 
in branch '3.7':
bpo-34966: Improve support of method aliases in pydoc. (GH-9823)
https://github.com/python/cpython/commit/9d3658147b56e24e96e174510b6ee91c8141e530


--
nosy: +miss-islington

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-11-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9692

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-11-07 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9691

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-11-07 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a44d34e17908a49d584f86c4f8642a50707b7150 by Serhiy Storchaka in 
branch 'master':
bpo-34966: Improve support of method aliases in pydoc. (GH-9823)
https://github.com/python/cpython/commit/a44d34e17908a49d584f86c4f8642a50707b7150


--

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-10-29 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-10-12 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

The original function is present too.

 |  tkraise(self, aboveThis=None)
 |  Raise this widget in the stacking order.

--

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-10-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

What do you mean by 'does not work'.

Alias of function in same namespace.

|  itemconfig = itemconfigure(self, index, cnf=None, **kw)
|  
|  itemconfigure(self, index, cnf=None, **kw)
|  Configure resources of an ITEM.

Alias of function in inherited namespace.

|  lift = tkraise(self, aboveThis=None)
|  Raise this widget in the stacking order.

This is also marked as an alias.  The difference is the inclusions of the 
docstring of the original.  I think it should be, since it would not otherwise 
be present in the help output.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-10-12 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +9200
stage:  -> patch review

___
Python tracker 

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



[issue34966] Pydoc: better support of method aliases

2018-10-12 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

Pydoc supports aliases. If the alias is defined in the same class

class A:
def foo(self, x=42): pass
bar = foo

it will render the docstring only for the original function. For the alias it 
will output just "bar = foo(self, x=42)".

But this doesn't work if the original function or alias are inherited. It often 
happened in the tkinter and turtle modules which have a hierarchy of classes, 
and aliases defined in parent classes. Compare for example the rendering for 
methods itemconfig and lift in help(tkinter.Listbox).

The proposed PR makes pydoc detecting aliases for inherited methods.

--
components: Library (Lib)
messages: 327593
nosy: serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: Pydoc: better support of method aliases
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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