Skip to content

Conversation

adorilson
Copy link
Contributor

@adorilson adorilson commented Aug 8, 2025

vstinner and others added 5 commits August 8, 2025 10:54
…#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.
@StanFromIreland
Copy link
Member

@adorilson PS. Whatever branch you are creating branches from has a few extra commits.

True
>>> 'abc123!@#'.isalnum()
False
>>> ''.isalnum()
Copy link
Member

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.

Copy link
Contributor Author

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.

@adorilson
Copy link
Contributor Author

@adorilson PS. Whatever branch you are creating branches from has a few extra commits.

A long git horror history. But now it has ended (I hope).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Add examples to docs for str methods

3 participants