[issue13754] str.ljust and str.rjust do not exactly describes original string return

py.user report at bugs.python.org
Tue Jan 10 04:59:55 CET 2012


New submission from py.user <port139 at yandex.ru>:

http://docs.python.org/py3k/library/stdtypes.html#str.ljust

str.ljust(width[, fillchar])¶

    Return the string left justified in a string of length width. Padding is done using the specified fillchar (default is a space). The original string is returned if width is less than len(s).

str.rjust(width[, fillchar])¶

    Return the string right justified in a string of length width. Padding is done using the specified fillchar (default is a space). The original string is returned if width is less than len(s).



"less than len(s)" -> "less than or equal to len(s)"

----------
assignee: docs at python
components: Documentation
messages: 151000
nosy: docs at python, py.user
priority: normal
severity: normal
status: open
title: str.ljust and str.rjust do not exactly describes original string return
versions: Python 3.2

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


More information about the Python-bugs-list mailing list