[issue24314] irrelevant cross-link in documentation of user-defined functions

2016-06-18 Thread Martin Panter

Martin Panter added the comment:

I also backported most of my changes to 2.7, although __name__ wasn’t 
originally linking to anything at all there.

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

___
Python tracker 

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



[issue24314] irrelevant cross-link in documentation of user-defined functions

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1ed4e4a168bb by Martin Panter in branch '2.7':
Issue #24314: Add links for general attributes like __name__, __dict__
https://hg.python.org/cpython/rev/1ed4e4a168bb

New changeset 4c361e189747 by Martin Panter in branch '3.5':
Issue #24314: Fix doc links for general attributes like __name__, __dict__
https://hg.python.org/cpython/rev/4c361e189747

New changeset 79a3aff60e37 by Martin Panter in branch 'default':
Issue #24314: Merge doc links from 3.5
https://hg.python.org/cpython/rev/79a3aff60e37

--
nosy: +python-dev

___
Python tracker 

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



[issue24314] irrelevant cross-link in documentation of user-defined functions

2015-05-28 Thread Martin Panter

Martin Panter added the comment:

I think the proper way to suppress the link is :attr:`!__name__`.

However I am posting a patch which takes a different approach. I tweaked some 
of the entries under 
https://docs.python.org/dev/library/stdtypes.html#special-attributes that 
also apply to functions, etc. I invented the pseudo class name “definition” for 
this; better suggestions are welcome!

Then I converted the user-defined functions reference, as well as many other 
references, to :attr:`~definition.__name__` or similar, for these three 
attributes:

* definition.__name__
* definition.__qualname__
* object.__dict__

I also moved the index markup so that the index entries for the table of 
function attributes work.

--
keywords: +patch
nosy: +vadmium
stage:  - patch review
Added file: http://bugs.python.org/file39542/special-attr.patch

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



[issue24314] irrelevant cross-link in documentation of user-defined functions

2015-05-28 Thread July Tikhonov

New submission from July Tikhonov:

https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy

There is a table of special attributes of user-defined functions. The 
__name__ attribute name is a link, but it leads to something quite irrelevant: 
the description of __name__ attribute of imported modules.

In Doc/reference/datamodel.rst, there is nothing special about __name__ 
attribute, so it looks like some random spasm of Sphinx creating links here and 
there. My knowledge of rst is not sufficient to suppress it.

--
assignee: docs@python
components: Documentation
messages: 244301
nosy: docs@python, july
priority: normal
severity: normal
status: open
title: irrelevant cross-link in documentation of user-defined functions
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6

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