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.

classification
Title: zfill doc string uses inconsistent variable names
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, tjd
Priority: normal Keywords:

Created on 2008-09-09 16:13 by tjd, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg72880 - (view) Author: Toby Donaldson (tjd) Date: 2008-09-09 16:13
The doc string for zfill use the variable name "x" when it should
probably be using the variable name "S".

>>> print(''.zfill.__doc__)
S.zfill(width) -> str

Pad a numeric string x with zeros on the left, to fill a field
of the specified width. The string x is never truncated.
msg72897 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-09-09 19:26
Thanks, fixed in r66347.
History
Date User Action Args
2022-04-11 14:56:38adminsetgithub: 48072
2008-09-09 19:26:21georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg72897
2008-09-09 16:13:23tjdcreate