CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 21:33:07 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/python/cpython.git
etag: W/"1bb2365b256842db13541abb4b943df4"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Ke%2FDcUZn4%2F8fn%2F2V0G1uLgtJo79qyU7YqLmVHtP8a%2BRSzncn4tSZ%2B%2Bz5laLprUOeKc3lrIzzfyt9XLGZ4ULfsG2y%2BSG6ISEWM1gFT6KSnRJYvpQw04MMUYcPV9Tv58aSWH%2FHKSbx86y3M00DRv3apZaq8%2FWFU5nqJLoLhE0Os3n18fU%2B0zOYw7eb%2B0IIcEHmI5ccYKfBxi6SkpMPpXzdEPSFPYyY1KvSodg9MEEfK%2BO4WNa3cDrve2nGANaUQT%2Fl5iHV7Xop3UvPJSkCNMKb%2FQ%3D%3D--z8PTQdNG72yutA0L--DY0lO%2FcC2RGz5LxYENWTMA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1644988630.1760218386; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 21:33:06 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 21:33:06 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8E72:1D4E10:A34A0F:D7850E:68EACD12
bpo-46008: Move Py*State init into distinct functions. (gh-29977) · python/cpython@32a6724 · GitHub
Copy file name to clipboardExpand all lines: Include/internal/pycore_interp.h
Copy file name to clipboardExpand all lines: Include/internal/pycore_runtime.h
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Commit 32a6724
authored
Previously, basic initialization of PyInterprterState happened in PyInterpreterState_New() (along with allocation and adding the new interpreter to the runtime state). This prevented us from initializing interpreter states that were allocated separately (e.g. statically or in a free list). We've addressed that here by factoring out a separate function just for initialization. We've done the same for PyThreadState. _PyRuntimeState was sorted out when we added it since _PyRuntime is statically allocated. However, here we update the existing init code to line up with the functions for PyInterpreterState and PyThreadState.
https://bugs.python.org/issue46008
1 parent 758b74e commit 32a6724Copy full SHA for 32a6724
File tree
Expand file treeCollapse file tree
4 files changed
+299
-103
lines changedFilter options
- Include
- cpython
- internal
- Python
Expand file treeCollapse file tree
4 files changed
+299
-103
lines changedCollapse file: Include/cpython/pystate.h
+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
80 | 86 |
| |
81 | 87 |
| |
82 | 88 |
| |
|
Collapse file: Include/internal/pycore_interp.h
Include/internal/pycore_interp.h
Copy file name to clipboardExpand all lines: Include/internal/pycore_interp.h+5-1Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
243 |
| - | |
244 | 243 |
| |
245 | 244 |
| |
246 | 245 |
| |
| |||
262 | 261 |
| |
263 | 262 |
| |
264 | 263 |
| |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
265 | 269 |
| |
266 | 270 |
| |
267 | 271 |
| |
|
Collapse file: Include/internal/pycore_runtime.h
Include/internal/pycore_runtime.h
Copy file name to clipboardExpand all lines: Include/internal/pycore_runtime.h+16-1Lines changed: 16 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 |
| |
71 | 77 |
| |
72 | 78 |
| |
| |||
136 | 142 |
| |
137 | 143 |
| |
138 | 144 |
| |
139 |
| - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
140 | 148 |
| |
141 | 149 |
| |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
142 | 157 |
| |
143 | 158 |
| |
144 | 159 |
| |
|
You can’t perform that action at this time.
0 commit comments