[docs] [issue25467] Put “deprecated” warnings first
report at bugs.python.org
Mon Oct 26 07:31:07 EDT 2015
Ezio Melotti added the comment:
Thanks for the report and the patch.
I think a better way to handle this would be to add a "tag" next to the function name for both deprecations and "new in", and leave the actual deprecation/new-in notes at the bottom, something like:
funcname(args) [new in 3.2] [deprecated in 3.5]
Func description here.
New in 3.2: the funcname() function was added.
Deprecated in 3.5: funcname() has been deprecated. Use anotherfunc() instead.
I've seen other docs doing it, however I'm not sure how easy it would be to implement something similar for Sphinx (maybe it's necessary to redefine the func/meth/class roles).
nosy: +eric.araujo, ezio.melotti, georg.brandl
Python tracker <report at bugs.python.org>
More information about the docs