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.

作者 ezio.melotti
收信人 benjamin.peterson, docs@python, eric.araujo, ezio.melotti, georg.brandl, jonash, r.david.murray
日期 2011-06-07.22:28:39
SpamBayes Score 2.2331703e-09
Marked as misclassified
Message-id <1307485719.9.0.429615651435.issue11975@psf.upfronthosting.co.za>
In-reply-to
内容
What if in the functions.rst page we specify the current module for all the functions (or even just for int/float/etc) as __builtin__ and use the function directive, and in the stdtypes.rst (or elsewhere) we use the class directive?
The idea is to pretend that '__builtin__.int' is a function in the __builtin__ module whereas 'int' is a global object.  In this way :func/class:`int` will probably link to the stdtypes.rst page, and :func/class:`~__builtin__.int` can be used to link to the functions.rst page (or the other way around if we want to link to the functions.rst page more often).  This is only a workaround though (assuming that it works), changing Sphinx to be smarter might be a better option.
历史
日期 用户 动作 参数
2011-06-07 22:28:40ezio.melotti修改recipients: + ezio.melotti, georg.brandl, benjamin.peterson, eric.araujo, r.david.murray, jonash, docs@python
2011-06-07 22:28:39ezio.melotti修改messageid: <1307485719.9.0.429615651435.issue11975@psf.upfronthosting.co.za>
2011-06-07 22:28:39ezio.melotti链接issue11975 messages
2011-06-07 22:28:39ezio.melotti创建