Title: pycore_optimizer_types.h needs to include stdbool.h · Issue #143943 · python/cpython · GitHub
Open Graph Title: pycore_optimizer_types.h needs to include stdbool.h · Issue #143943 · python/cpython
X Title: pycore_optimizer_types.h needs to include stdbool.h · Issue #143943 · python/cpython
Description: Bug report Bug description: aeb3403 moved some code using the bool type from pycore_optimizer.h, which includes stdbool.h, to pycore_optimizer_types.h, which does not. As a result, depending on the internal details of your libc headers...
Open Graph Description: Bug report Bug description: aeb3403 moved some code using the bool type from pycore_optimizer.h, which includes stdbool.h, to pycore_optimizer_types.h, which does not. As a result, depending on t...
X Description: Bug report Bug description: aeb3403 moved some code using the bool type from pycore_optimizer.h, which includes stdbool.h, to pycore_optimizer_types.h, which does not. As a result, depending on t...
Opengraph URL: https://github.com/python/cpython/issues/143943
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pycore_optimizer_types.h needs to include stdbool.h","articleBody":"# Bug report\n\n### Bug description:\n\naeb3403 moved some code using the `bool` type from `pycore_optimizer.h`, which includes `stdbool.h`, to `pycore_optimizer_types.h`, which does not. As a result, depending on the internal details of your libc headers, you can now get a compile error like:\n```\nIn file included from Parser/pegen_errors.c:5:\nIn file included from ./Include/internal/pycore_runtime.h:11:\nIn file included from ./Include/internal/pycore_runtime_structs.h:10:\nIn file included from ./Include/internal/pycore_interp_structs.h:15:\nIn file included from ./Include/internal/pycore_tstate.h:15:\n./Include/internal/pycore_optimizer_types.h:70:5: error: unknown type name 'bool'\n bool invert;\n ^\n```\n\n### CPython versions tested on:\n\n3.15\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-143947\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/jmroot","@type":"Person","name":"jmroot"},"datePublished":"2026-01-16T22:54:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/143943/cpython/issues/143943"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7cc32afa-16db-7e58-a50b-4b97c1080155 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E752:169C19:51CED5E:6EB3BF1:696E1872 |
| html-safe-nonce | 7d7c9b84ffd408fe0f8de29bb8be6f658f5c2d81c72f29aa137ae17fb887f2eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzUyOjE2OUMxOTo1MUNFRDVFOjZFQjNCRjE6Njk2RTE4NzIiLCJ2aXNpdG9yX2lkIjoiNzQ3NzE3OTE3NjYzNzU2OTEzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 02bcb2c68c5e88415785a0c98ff671abe7859264f9d534e3dab55c27421cacb4 |
| hovercard-subject-tag | issue:3823938154 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/143943/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7ea22ac93dc928ccf82ff1c347dbedcec90b7156f40e94575f06eac11d1cdf4/python/cpython/issues/143943 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7ea22ac93dc928ccf82ff1c347dbedcec90b7156f40e94575f06eac11d1cdf4/python/cpython/issues/143943 |
| og:image:alt | Bug report Bug description: aeb3403 moved some code using the bool type from pycore_optimizer.h, which includes stdbool.h, to pycore_optimizer_types.h, which does not. As a result, depending on t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jmroot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 113cc336e7105fbb9f2ee8beb67c6cc584d65fa66a8a1a5dd236ba66db174af7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d23f8b0bc31294c6a73ba2f3adfdd8c7052ca1e |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width