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: textwrap.indent version added not documented
Type: behavior Stage:
Components: Documentation Versions: Python 3.3, Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: chfoo, docs@python, python-dev, rhettinger
Priority: normal Keywords:

Created on 2014-11-06 04:35 by chfoo, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg230725 - (view) Author: Christopher Foo (chfoo) Date: 2014-11-06 04:35
I was running my program under CI and it failed under 3.2:

    text = textwrap.indent(text, '* ', predicate=lambda line: True)

    AttributeError: 'module' object has no attribute 'indent'

textwrap.indent appears to be a new feature in 3.3 but Doc/library/textwrap.rst is not documented with ".. versionadded:: 3.3"
msg230726 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-11-06 05:28
New changeset 501edbbb74ff by Raymond Hettinger in branch '3.4':
Issue 22803:  Add missing versionadded directive.
https://hg.python.org/cpython/rev/501edbbb74ff
msg230727 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2014-11-06 05:28
Thanks for the bug report.
History
Date User Action Args
2022-04-11 14:58:09adminsetgithub: 66992
2014-11-06 05:28:58rhettingersetstatus: open -> closed

nosy: + rhettinger
messages: + msg230727

resolution: fixed
2014-11-06 05:28:33python-devsetnosy: + python-dev
messages: + msg230726
2014-11-06 04:35:13chfoocreate