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: Missing import of bisect in the documentation examples
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.7, Python 3.6, Python 3.5
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, marco.buttu, rhettinger
Priority: normal Keywords: patch

Created on 2017-02-27 18:58 by marco.buttu, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
import_bisect.patch marco.buttu, 2017-02-27 18:58 review
Messages (2)
msg288663 - (view) Author: Marco Buttu (marco.buttu) * Date: 2017-02-27 18:58
There is no import of bisect.bisect() and bisect.bisect_left() in the documentation. IMHO the examples are clearer and more complete if we import these functions, as in the attached patch.
msg288691 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2017-02-28 04:23
Sorry, but I think this is a waste.  A number of the example sections presume that the module under discussion has been imported.   Also, these docs have been around for a long time without the slightest indication of confusion.
History
Date User Action Args
2022-04-11 14:58:43adminsetgithub: 73855
2017-02-28 04:23:23rhettingersetstatus: open -> closed

nosy: + rhettinger
messages: + msg288691

resolution: rejected
stage: resolved
2017-02-27 18:58:07marco.buttucreate