[New-bugs-announce] [issue45498] [doc] Fix a code example, non declared variable being printed

Lahfa Samy report at bugs.python.org
Sat Oct 16 16:59:22 EDT 2021


New submission from Lahfa Samy <lahfa121999 at gmail.com>:

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.

----------
assignee: docs at python
components: Documentation
files: csv-example-fix.patch
keywords: patch
messages: 404115
nosy: AkechiShiro, docs at python
priority: normal
severity: normal
status: open
title: [doc] Fix a code example, non declared variable being printed
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file50365/csv-example-fix.patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45498>
_______________________________________


More information about the New-bugs-announce mailing list