-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-106318: Add example for str.isalnum() #137550
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.
@adorilson PS. Whatever branch you are creating branches from has a few extra commits. |
True | ||
>>> 'abc123!@#'.isalnum() | ||
False | ||
>>> ''.isalnum() |
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.
IMO this is so similar to the last example I think it’s not necessary.
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 ''
and ' '
? I intended to show that an empty string is different from a space character. Frequently, people forget this.
A long git horror history. But now it has ended (I hope). |
WIP to fix #106318
📚 Documentation preview 📚: https://cpython-previews--137550.org.readthedocs.build/