[issue5284] platform.linux_distribution() improperly documented

Marc-Andre Lemburg report at bugs.python.org
Tue Feb 17 10:26:25 CET 2009


Marc-Andre Lemburg <mal at egenix.com> added the comment:

On 2009-02-16 22:42, Armin Ronacher wrote:
> New submission from Armin Ronacher <armin.ronacher at active-4.com>:
> 
> platform.linux_distribution() was added in 2.6 as an alias for
> platform.dist().  However the documentation lists platform.dist() as an
> alias for platform.linux_distribution() and there is no information that
> the latter appered in 2.6 whereas the former exists since 2.4 I think.

> Not sure what the fix is, but it should be documented properly with "..
> versionadded:: 2.6".

Note that dist() redirects to linux_distribution(), not the other
way around.

I'll add the versionadded tags and also clarify the dist() documentation:
it's missing a comment that full_distribution_name is set to false
when redirecting to linux_distribution().

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5284>
_______________________________________


More information about the Python-bugs-list mailing list