homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: update :class:`str` references to link to the str type section
Type: enhancement Stage:
Components: Documentation Versions: Python 3.3, Python 3.4
process
Status: closed Resolution: duplicate
Dependencies: 16209 Superseder: add a "class str" entry to the docs
View: 16209
Assigned To: docs@python Nosy List: chris.jerdonek, docs@python, ezio.melotti, ncoghlan
Priority: normal Keywords:

Created on 2012年10月12日 02:15 by chris.jerdonek, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (7)
msg172713 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012年10月12日 02:15
3.3 added a dedicated section to the docs for the str type. However, references to :class:`str` still link to the documentation of the built-in function str().
This issue is to update references to the str class to point to the new section on the str type.
We could use :ref:`str <textseq>`, but it would be nice to have a solution that makes "str" have the code-style font instead of italics.
msg172714 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012年10月12日 02:59
I'm not sure if Sphinx would allow it, but it would be nice if references to the function str() could link to the built-in function documentation, and references to the class str could link to the section on the str type.
msg172717 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012年10月12日 03:19
The documentation seems to take a similar approach with dict:
http://docs.python.org/dev/library/stdtypes.html#dict
http://docs.python.org/dev/library/functions.html#func-dict 
msg172739 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2012年10月12日 11:40
If :class:`str` and :func:`str` point respectively to stdtypes.rst and functions.rst once a class directive is added to stdtypes.rst, then we can do that. We might than need to update a few links to use :class: instead of :func:, and possibly use :ref:`textseq` where appropriate.
msg172740 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2012年10月12日 11:44
Adding a class directive for str is tracked in #16209.
msg172741 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012年10月12日 11:46
> If :class:`str` and :func:`str` point respectively to stdtypes.rst and functions.rst once a class directive is added to stdtypes.rst, then we can do that.
I agree. I would suggest starting small by adding a stub class entry above the string methods. The class constructor could link to the built-in function str() for its definition.
msg176528 - (view) Author: Chris Jerdonek (chris.jerdonek) * (Python committer) Date: 2012年11月28日 10:03
This was addressed by issue #16209 since with that change :class:`str` and :func:`str` now both go to the new str class entry in the string type section. See also the new issue #16568.
History
Date User Action Args
2022年04月11日 14:57:37adminsetgithub: 60409
2012年11月28日 10:03:18chris.jerdoneksetstatus: open -> closed
superseder: add a "class str" entry to the docs
resolution: duplicate
messages: + msg176528
2012年10月12日 11:46:25chris.jerdoneksetmessages: + msg172741
2012年10月12日 11:44:12ezio.melottisetdependencies: + add a "class str" entry to the docs
messages: + msg172740
2012年10月12日 11:40:14ezio.melottisetmessages: + msg172739
2012年10月12日 03:19:45chris.jerdoneksetmessages: + msg172717
2012年10月12日 02:59:19chris.jerdoneksetmessages: + msg172714
2012年10月12日 02:15:26chris.jerdonekcreate

AltStyle によって変換されたページ (->オリジナル) /