gh-122461: Document that compile() and ast.parse() raise SyntaxError for null bytes by devdanzin · Pull Request #122462 · python/cpython · GitHub

github.com

Tin mới

devdanzin:doc_null_bytes

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Incorrect information about exception raised if source contains null bytes for ast.parse() and compile() #122461

Update docs for compile() and ast.parse() stating they raise SyntaxEr…

needs backport to 3.12

needs backport to 3.12

needs backport to 3.13

needs backport to 3.13

View reviewed changes

Address review for docs of compile() and ast.parse() regarding null c…

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Document that ast.parse() and compile() can raise ValueError, Overflo…

python-cla-bot Bot commented Apr 18, 2025 • edited Loading Uh oh! There was an error while loading. Please reload this page.

python-cla-bot Bot commented Apr 18, 2025 • edited Loading Uh oh! There was an error while loading. Please reload this page.

There was an error while loading. Please reload this page.

needs backport to 3.14

needs backport to 3.14

github-actions Bot commented Apr 17, 2026

github-actions Bot commented Apr 17, 2026

This PR is stale because it has been open for 30 days with no activity.

needs backport to 3.15

needs backport to 3.15