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: [doc] Fix a code example, non declared variable being printed
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.11, Python 3.10, Python 3.9, Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: AkechiShiro, docs@python
Priority: normal Keywords: patch

Created on 2021-10-16 20:59 by AkechiShiro, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
csv-example-fix.patch AkechiShiro, 2021-10-16 20:59
Pull Requests
URL Status Linked Edit
PR 28999 closed AkechiShiro, 2021-10-16 21:23
Messages (1)
msg404115 - (view) Author: Lahfa Samy (AkechiShiro) * Date: 2021-10-16 20:59
I was looking through the documentation at examples for reading CSV files and noticed that an undefined variable was printed in a code example, this affects Python version from 3.6 till 3.110a1 (dev version of the documentation).

It got me kind of confused, because a for loop does not really declare variables.
The fix is really simple, just printing the variable that is declared.
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89661
2021-10-16 21:44:44AkechiShirosetstatus: open -> closed
stage: patch review -> resolved
2021-10-16 21:23:09AkechiShirosetstage: patch review
pull_requests: + pull_request27281
2021-10-16 20:59:22AkechiShirocreate