-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-106318: Add example for str.isalpha() #137557
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?
Conversation
…#106335) Remove private _PyThreadState and _PyInterpreterState C API functions: move them to the internal C API (pycore_pystate.h and pycore_interp.h). Don't export most of these functions anymore, but still export functions used by tests. Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C API, but keep it in the stable API.
This reverts commit ebfa093.
Doc/library/stdtypes.rst
Outdated
For example:: | ||
|
||
..doctest:: | ||
|
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.
These conflict
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.
Do you mean the missing space after ..
?
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.
You can’t have both ::
and the doctest. Look at what happens when you build it.
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 got. Fixing.
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.
Done.
Doc/library/stdtypes.rst
Outdated
|
||
See Unicode Properties section in :ref:`unicode-howto`. |
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.
Which section exactly are you referring to? The description already covers the properties. Idea: It could be shown in the example, e.g.:
>>> import unicodedata
... unicodedata.category('é')
'Ll'
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.
Which section exactly are you referring to?
https://docs.python.org/3/howto/unicode.html#unicode-properties
I couldn't link to the subsection. Now I discovered that :ref:
role links to a label in the form .. _my-reference-label:
, not to reStructuredText sections.
So, now I intend to put (adding this label on the Unicode Properties section)
See :ref:`unicode-properties`
I think this is more valuable than the example you suggested and a good complement to the description.
Shall I go ahead with this?
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.
It is done. Here and on #137592.
Co-authored-by: Éric <merwok@netwok.org>
WIP to fix #106318
📚 Documentation preview 📚: https://cpython-previews--137557.org.readthedocs.build/