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.
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:37 | admin | set | github: 60409 |
| 2012年11月28日 10:03:18 | chris.jerdonek | set | status: open -> closed superseder: add a "class str" entry to the docs resolution: duplicate messages: + msg176528 |
| 2012年10月12日 11:46:25 | chris.jerdonek | set | messages: + msg172741 |
| 2012年10月12日 11:44:12 | ezio.melotti | set | dependencies:
+ add a "class str" entry to the docs messages: + msg172740 |
| 2012年10月12日 11:40:14 | ezio.melotti | set | messages: + msg172739 |
| 2012年10月12日 03:19:45 | chris.jerdonek | set | messages: + msg172717 |
| 2012年10月12日 02:59:19 | chris.jerdonek | set | messages: + msg172714 |
| 2012年10月12日 02:15:26 | chris.jerdonek | create | |