GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-107017: Change Chapter Strings to Texts in the Introduction chapter. by TommyUnreal · Pull Request #107104 · python/cpython Conversation
|
| .. _tut-strings: | ||
|
|
||
| Strings | ||
| Texts |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'd actually keep the heading Strings, because that's the correct name.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| in several ways. They can be enclosed in single quotes (``'...'``) or | ||
| double quotes (``"..."``) with the same result [#]_. ``\`` can be used | ||
| to escape quotes:: | ||
| Different kinds of text have the type :class:`str`. This includes |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would suggest:
Python can manipulate text ("strings") as well as numbers. This can include [your list of examples].
Strings are enclosed [...].
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| characters "``!``", words "``rabbit``", names "``Paris``", sentences | ||
| "``Got your back.``", etc. "``Yay! :)``". They can be enclosed in single | ||
| quotes (``'...'``) or double quotes (``"..."``) with the same result [#]_. | ||
| ``\`` can be used to escape quotes:: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think the concept of escaping (and the word) is not familiar to many beginners, so I'd suggest something like:
To quote a quote, we need to "escape" it, by preceding it with
\::
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| to escape quotes:: | ||
| Different kinds of text have the type :class:`str`. This includes | ||
| characters "``!``", words "``rabbit``", names "``Paris``", sentences | ||
| "``Got your back.``", etc. "``Yay! :)``". They can be enclosed in single |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Perhaps add:
Even "123" is a string (and not a number - because it's enclosed in quotes.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Changed the description, removed duplicate explanations and reworked examples so they are more consice with its paragraph.
| strings are equivalent. The string is enclosed in double quotes if | ||
| the string contains a single quote and no double quotes, otherwise it is | ||
| enclosed in single quotes. The :func:`print` function produces a more | ||
| In the interactive interpreter, the string definition and output string |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
"In the Python shell..."
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Some minor suggestions, thanks for the PR!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Thank you for the feedback! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Hugo van Kemenade <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @TommyUnreal for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-107167 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…chapter. (pythonGH-107104) (cherry picked from commit 2cf9902) Co-authored-by: TommyUnreal <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
|
GH-107168 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…chapter. (pythonGH-107104) (cherry picked from commit 2cf9902) Co-authored-by: TommyUnreal <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
… chapter. (GH-107104) (#107167) Co-authored-by: TommyUnreal <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
… chapter. (GH-107104) (#107168) Co-authored-by: TommyUnreal <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
* main: (73 commits) Thoroughly refactor the cases generator (python#107151) Docs: Add missing markup to Argument Clinic docs (python#106876) pythongh-107162: Document errcode.h usage in its comment (python#107177) pythongh-106320: Remove private _PyDict C API (python#107145) Fix PyVectorcall_Function doc versionadded (python#107140) Docs: Remove duplicate word in Argument Clinic howto heading (python#107169) pythongh-107017: Change Chapter Strings to Texts in the Introduction chapter. (python#107104) pythongh-106320: Remove private _PyObject C API (python#107159) Docs: fix typo in os.pwrite docstring (python#107087) pythongh-105291: Add link to migration guide for distutils (python#107130) pythongh-106948: Docs: Disable links for C standard library functions, OS utility functions and system calls (python#107062) pythongh-106320: Remove _PyBytes_Join() C API (python#107144) pythongh-106320: Remove private _PyObject C API (python#107147) pythongh-106320: Remove _PyTuple_MaybeUntrack() C API (python#107143) pythongh-106320: Remove _PyIsSelectable_fd() C API (python#107142) Remove superflous whitespaces in `layout.html`. (pythonGH-107067) pythongh-107122: Update what's news for dbm.*dbm.clear() method (pythongh-107135) pythongh-107122: Add clear method to dbm.ndbm module (pythongh-107126) pythongh-62519: Make pgettext search plurals when translation is not found (python#107118) pythongh-107122: Add clear method to dbm.gdbm.module (pythongh-107127) ...
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.