-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-135243: improve CSV docs #135246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
gh-135243: improve CSV docs #135246
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second paragraph doesn't need updates IMO.
knowing the precise details of the CSV format used by Excel. Programmers can | ||
also describe the CSV formats understood by other applications or define their | ||
own special-purpose CSV formats. | ||
format. For example, the module enables programmers to say, "write this data in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reasoning for the changes are:
- "it" is ambiguous but refers to the module.
- Those two statements the programmer is saying (to themself?) is a scenario. By adding "for example" (which is typical in technical documentation), we highlight that it is one thing someone can do but not the only thing.
- Very very minor: there is a technical difference between "allows" and "enables".
Doc/library/csv.rst
Outdated
own special-purpose CSV formats. | ||
format. For example, the module enables programmers to say, "write this data in the | ||
format preferred by Excel," or "read data from this file which was generated by Excel," | ||
without knowing the precise details of the CSV format that is used by Excel. Programmers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nor this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"that is" is added to improve readability for ESL users (Global English guidelines) and localization.
Doc/library/csv.rst
Outdated
format. For example, the module enables programmers to say, "write this data in the | ||
format preferred by Excel," or "read data from this file which was generated by Excel," | ||
without knowing the precise details of the CSV format that is used by Excel. Programmers | ||
can also describe CSV formats that are used by other applications or define custom CSV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood is the correct term here. Because we use the term "dialect" for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushed new update for this issue
Updates for GH-135243 to cpython/Doc/library/csv.rst file for these issues:
📚 Documentation preview 📚: https://cpython-previews--135246.org.readthedocs.build/