Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.3k
Star
74.7k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Grammar
python.gram
on
3.14
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 31, 2025
[3.14] gh-138944: Fix `SyntaxError` message for invalid syntax following valid import-as statement (GH-138945) (#140646)
Show description for d0c78a4
brianschubert
authored
d0c78a4
View commit details
Copy full SHA for d0c78a4
View code at this point
Browse repository at this point
Commits on Aug 15, 2025
[3.14] gh-137078: Fix keyword typo recognition when executed over files (GH-137079) (#137826)
miss-islington
authored
7b56d08
View commit details
Copy full SHA for 7b56d08
View code at this point
Browse repository at this point
Commits on Jul 21, 2025
[3.14] gh-132661: Disallow `Template`/`str` concatenation after PEP 750 spec update (#135996) (#136901)
Show description for af8d1f5
3 people
authored
af8d1f5
View commit details
Copy full SHA for af8d1f5
View code at this point
Browse repository at this point
Commits on May 19, 2025
[3.14] gh-133999: Fix `except` parsing regression in 3.14 (GH-134035) (#134206)
Show description for d9c08c5
miss-islington
and
sobolevn
authored
d9c08c5
View commit details
Copy full SHA for d9c08c5
View code at this point
Browse repository at this point
Commits on May 14, 2025
[3.14] Remove trailing whitespace from python.gram (GH-133858) (#133990)
Show description for 275c8d5
3 people
authored
275c8d5
View commit details
Copy full SHA for 275c8d5
View code at this point
Browse repository at this point
Commits on May 3, 2025
gh-133194: Fix regression with PEP 758 parsing on older `feature_version` (#133289)
Show description for ca0a96d
sobolevn
authored
ca0a96d
View commit details
Copy full SHA for ca0a96d
View code at this point
Browse repository at this point
Commits on May 2, 2025
gh-123539: Improve SyntaxError msg for `import as` with not a name (#123629)
sobolevn
authored
a6ddd07
View commit details
Copy full SHA for a6ddd07
View code at this point
Browse repository at this point
Commits on May 1, 2025
gh-133196: Guard PEP 750 grammar with `CHECK_VERSION` (#133225)
sobolevn
authored
5cdd49b
View commit details
Copy full SHA for 5cdd49b
View code at this point
Browse repository at this point
Commits on Apr 30, 2025
gh-133194: Add `CHECK_VERSION` to new PEP758 grammar (#133195)
sobolevn
authored
b1f8938
View commit details
Copy full SHA for b1f8938
View code at this point
Browse repository at this point
gh-132661: Implement PEP 750 (#132662)
Show description for 6020260
10 people
authored
6020260
View commit details
Copy full SHA for 6020260
View code at this point
Browse repository at this point
Remove trailing whitespace from python.gram (#133175)
rffontenelle
authored
fd0f5d0
View commit details
Copy full SHA for fd0f5d0
View code at this point
Browse repository at this point
Commits on Apr 25, 2025
gh-129858: Special syntax error for `elif` block after `else` (#129902)
swfarnsworth
authored
99b71ef
View commit details
Copy full SHA for 99b71ef
View code at this point
Browse repository at this point
Commits on Apr 22, 2025
gh-132449: Improve syntax error messages for keywords with typos (#132450)
Show description for bf3a0a1
pablogsal
and
ambv
authored
bf3a0a1
View commit details
Copy full SHA for bf3a0a1
View code at this point
Browse repository at this point
Commits on Apr 1, 2025
gh-131831: Implement PEP 758 – Allow except and except* expressions without parentheses (#131833)
pablogsal
authored
c2ac662
View commit details
Copy full SHA for c2ac662
View code at this point
Browse repository at this point
Commits on Feb 18, 2025
gh-129515: Clarify syntax error messages for conditional expressions (#129880)
Show description for bcc9a5d
4 people
authored
bcc9a5d
View commit details
Copy full SHA for bcc9a5d
View code at this point
Browse repository at this point
Commits on Feb 14, 2025
gh-125331: Allow the parser to activate future imports on the fly (#125482)
pablogsal
authored
3bd3e09
View commit details
Copy full SHA for 3bd3e09
View code at this point
Browse repository at this point
Commits on Feb 13, 2025
gh-88535: Improve syntax error for wrongly closed strings (#26633)
pablogsal
authored
6fb5138
View commit details
Copy full SHA for 6fb5138
View code at this point
Browse repository at this point
Commits on Oct 6, 2024
gh-122951: Simplify the grammar of the assignment rule (#124998)
zedr
authored
39c859f
View commit details
Copy full SHA for 39c859f
View code at this point
Browse repository at this point
Commits on Sep 2, 2024
gh-123562: Improve `SyntaxError` message for `case ... as a.b` (#123563)
sobolevn
authored
23f159a
View commit details
Copy full SHA for 23f159a
View code at this point
Browse repository at this point
Commits on Aug 30, 2024
gh-123440: Improve error message for `except as` used with not a name (#123442)
sobolevn
authored
e451a89
View commit details
Copy full SHA for e451a89
View code at this point
Browse repository at this point
Commits on Jun 4, 2024
gh-119724: Revert "bpo-45759: Better error messages for non-matching 'elif'/'else' statements (#29513)" (#119974)
Show description for 31a4fb3
encukou
authored
31a4fb3
View commit details
Copy full SHA for 31a4fb3
View code at this point
Browse repository at this point
Commits on May 30, 2024
gh-118235: Move RAISE_SYNTAX_ERROR actions to invalid rules and make sure they stay there (GH-119731)
Show description for 48f21b3
encukou
authored
48f21b3
View commit details
Copy full SHA for 48f21b3
View code at this point
Browse repository at this point
Commits on May 7, 2024
gh-118090: Improve error message for empty type param brackets (GH-118091)
sobolevn
authored
b60d4c0
View commit details
Copy full SHA for b60d4c0
View code at this point
Browse repository at this point
Commits on May 3, 2024
gh-116126: Implement PEP 696 (#116129)
Show description for ca269e5
4 people
authored
ca269e5
View commit details
Copy full SHA for ca269e5
View code at this point
Browse repository at this point
Commits on Apr 27, 2024
gh-118323: Document `&&` grammar syntax (#118324)
sobolevn
authored
51aefc5
View commit details
Copy full SHA for 51aefc5
View code at this point
Browse repository at this point
Commits on Apr 24, 2024
gh-116988: Remove duplicates of `annotated_rhs` in the Grammar (#117004)
Rexicon226
authored
9b280ab
View commit details
Copy full SHA for 9b280ab
View code at this point
Browse repository at this point
Commits on Apr 23, 2024
gh-118082: Improve `import` without names syntax error message (#118083)
sobolevn
authored
de1f686
View commit details
Copy full SHA for de1f686
View code at this point
Browse repository at this point
Commits on Apr 2, 2024
gh-109120: Fix syntax error in handlinh of incorrect star expressions (#117444)
grigoriev-semyon
authored
c97d3af
View commit details
Copy full SHA for c97d3af
View code at this point
Browse repository at this point
Commits on Mar 26, 2024
bpo-24612: Improve syntax error for 'not' after an operator (GH-28170)
Show description for 61599a4
pablogsal
and
lysnikolaou
authored
61599a4
View commit details
Copy full SHA for 61599a4
View code at this point
Browse repository at this point
Commits on Feb 26, 2024
gh-115881: Ensure `ast.parse()` parses conditional context managers even with low `feature_version` passed (#115920)
AlexWaygood
authored
7a3518e
View commit details
Copy full SHA for 7a3518e
View code at this point
Browse repository at this point
Commits on Jan 6, 2024
gh-111488: Changed error message in case of no 'in' keyword after 'for' in cmp (#113656)
grigoriev-semyon
authored
bb4c167
View commit details
Copy full SHA for bb4c167
View code at this point
Browse repository at this point
Commits on Nov 20, 2023
bpo-45759: Better error messages for non-matching 'elif'/'else' statements (#29513)
thatbirdguythatuknownot
authored
1c8f912
View commit details
Copy full SHA for 1c8f912
View code at this point
Browse repository at this point
Commits on Oct 31, 2023
gh-111420: Allow type comments in parenthesized `with` statements (#111468)
tomasr8
authored
453e96e
View commit details
Copy full SHA for 453e96e
View code at this point
Browse repository at this point
Commits on Oct 17, 2023
gh-110938: Fix error messages for indented blocks with functions and classes with generic type parameters (#110973)
pablogsal
authored
24e4ec7
View commit details
Copy full SHA for 24e4ec7
View code at this point
Browse repository at this point
Commits on Oct 12, 2023
gh-110696: Fix incorrect syntax error message for incorrect argument unpacking (#110706)
pablogsal
authored
3d18034
View commit details
Copy full SHA for 3d18034
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.