Documentation
The current CSV documentation (as of 852ec18) doesn't provide an example input for the csv files, making examples like:
|
>>> with open('eggs.csv', newline='') as csvfile: |
|
... spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|') |
|
... for row in spamreader: |
|
... print(', '.join(row)) |
|
Spam, Spam, Spam, Spam, Spam, Baked Beans |
|
Spam, Lovely Spam, Wonderful Spam |
ambiguous.
IMO a section in the docs stating something like:
for all code examples bellow we would use an input of:
knight,quest,favorite_color
Sir Lancelot,To seek the Holy Grail,Blue
Sir Robin,To bravely run away,Yellow... no wait Blue! AAARGH
This would make the rest of the examples more clear as to what each flag does
Linked PRs
Documentation
The current CSV documentation (as of 852ec18) doesn't provide an example input for the csv files, making examples like:
cpython/Doc/library/csv.rst
Lines 77 to 82 in c2ca772
ambiguous.
IMO a section in the docs stating something like:
This would make the rest of the examples more clear as to what each flag does
Linked PRs