Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
pythoncapi
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Python
peephole.c
on
pythoncapi
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 22, 2018
bpo-17611. Move unwinding of stack for "pseudo exceptions" from interpreter to compiler. (GH-5006)
Show description for 520b7ae
3 people
authored
520b7ae
View commit details
Copy full SHA for 520b7ae
View code at this point
Browse repository at this point
Commits on Dec 18, 2017
bpo-29469: peephole: Remove const_stack (GH-4879)
Show description for 87010e8
methane
authored
87010e8
View commit details
Copy full SHA for 87010e8
View code at this point
Browse repository at this point
Commits on Dec 14, 2017
bpo-29469: Optimize literal lists and sets iterating on the AST level. (#4866)
serhiy-storchaka
authored
15a8728
View commit details
Copy full SHA for 15a8728
View code at this point
Browse repository at this point
bpo-29469: Remove unnecessary peephole optimizer (GH-4863)
Show description for eadad1b
methane
authored
eadad1b
View commit details
Copy full SHA for eadad1b
View code at this point
Browse repository at this point
bpo-29469: Move constant folding to AST optimizer (GH-2858)
methane
authored
7ea143a
View commit details
Copy full SHA for 7ea143a
View code at this point
Browse repository at this point
Commits on Jun 11, 2017
bpo-30501: Make the compiler producing optimized code for condition expressions. (#1851)
serhiy-storchaka
authored
36ff451
View commit details
Copy full SHA for 36ff451
View code at this point
Browse repository at this point
Commits on Oct 25, 2016
Issue #28517: Fixed of-by-one error in the peephole optimizer that caused
Show description for 7db3c48
serhiy-storchaka
committed
7db3c48
View commit details
Copy full SHA for 7db3c48
View code at this point
Browse repository at this point
Commits on Sep 11, 2016
Fixed refactoring bug in dd046963bd42 (issue27129).
serhiy-storchaka
committed
a1e9ab3
View commit details
Copy full SHA for a1e9ab3
View code at this point
Browse repository at this point
Issue #27129: Replaced wordcode related magic constants with macros.
serhiy-storchaka
committed
ab87400
View commit details
Copy full SHA for ab87400
View code at this point
Browse repository at this point
Commits on Aug 8, 2016
Re-linewrap comments
rhettinger
committed
08eef3f
View commit details
Copy full SHA for 08eef3f
View code at this point
Browse repository at this point
Commits on May 26, 2016
Issue #27076: Merge spelling from 3.5
vadmium
committed
3e04d5b
View commit details
Copy full SHA for 3e04d5b
View code at this point
Browse repository at this point
Issue #27076: Doc, comment and tests spelling fixes
Show description for 46f5072
vadmium
committed
46f5072
View commit details
Copy full SHA for 46f5072
View code at this point
Browse repository at this point
Commits on May 24, 2016
Issue #26647: Python interpreter now uses 16-bit wordcode instead of bytecode.
Show description for b0f80b0
serhiy-storchaka
committed
b0f80b0
View commit details
Copy full SHA for b0f80b0
View code at this point
Browse repository at this point
Commits on Apr 6, 2016
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
serhiy-storchaka
committed
ec39756
View commit details
Copy full SHA for ec39756
View code at this point
Browse repository at this point
Commits on Jan 20, 2016
co_lnotab supports negative line number delta
Show description for f3914eb
vstinner
committed
f3914eb
View commit details
Copy full SHA for f3914eb
View code at this point
Browse repository at this point
Commits on Jan 5, 2016
Issue #20440: Cleaning up the code by using Py_SETREF.
serhiy-storchaka
committed
576f132
View commit details
Copy full SHA for 576f132
View code at this point
Browse repository at this point
Commits on May 12, 2015
PEP 0492 -- Coroutines with async and await syntax. Issue #24017.
Yury Selivanov
committed
7544508
View commit details
Copy full SHA for 7544508
View code at this point
Browse repository at this point
Commits on Feb 16, 2015
Issue #23450: Silenced compiler warnings and added asserts in peephole optimizer.
serhiy-storchaka
committed
67559bf
View commit details
Copy full SHA for 67559bf
View code at this point
Browse repository at this point
Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer
Show description for 1a1ff29
serhiy-storchaka
committed
1a1ff29
View commit details
Copy full SHA for 1a1ff29
View code at this point
Browse repository at this point
Commits on Nov 14, 2013
Issue #19437: Fix fold_unaryops_on_constants() of the peephole optimizer, clear
Show description for c82729e
vstinner
committed
c82729e
View commit details
Copy full SHA for c82729e
View code at this point
Browse repository at this point
Commits on Jul 8, 2013
Issue #18408: Fix PyCode_Optimize(): raise a MemoryError on memory allocation
Show description for e0af3a8
vstinner
committed
e0af3a8
View commit details
Copy full SHA for e0af3a8
View code at this point
Browse repository at this point
Commits on Dec 6, 2012
create NameConstant AST class for None, True, and False literals (closes #16619)
benjaminp
committed
442f209
View commit details
Copy full SHA for 442f209
View code at this point
Browse repository at this point
Commits on Sep 28, 2011
Implement PEP 393.
loewis
committed
d63a3b8
View commit details
Copy full SHA for d63a3b8
View code at this point
Browse repository at this point
Commits on Sep 21, 2011
Issue #13002: Fix Visual Studio warning (not enough actual parameters).
skrah
committed
472d280
View commit details
Copy full SHA for 472d280
View code at this point
Browse repository at this point
Commits on Apr 15, 2011
#5057: Merge with 3.2.
ezio-melotti
committed
e1adeeb
View commit details
Copy full SHA for e1adeeb
View code at this point
Browse repository at this point
#5057: Merge with 3.1.
ezio-melotti
committed
71e84a6
View commit details
Copy full SHA for 71e84a6
View code at this point
Browse repository at this point
Issue #5057: fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. "\U00012345"[0]).
ezio-melotti
committed
2df6a93
View commit details
Copy full SHA for 2df6a93
View code at this point
Browse repository at this point
Commits on Mar 23, 2011
Issue #11244: Remove outdated peepholer check that was preventing the peepholer from folding -0 and -0.0. Thanks Eugene Toder for the patch.
mdickinson
committed
7c9e803
View commit details
Copy full SHA for 7c9e803
View code at this point
Browse repository at this point
Commits on Mar 15, 2011
Issue 11510: Fix BUILD_SET optimizer bug.
rhettinger
committed
29dcaad
View commit details
Copy full SHA for 29dcaad
View code at this point
Browse repository at this point
Issue 11510: Fix BUILD_SET optimizer bug.
rhettinger
committed
0661e91
View commit details
Copy full SHA for 0661e91
View code at this point
Browse repository at this point
Commits on Mar 11, 2011
Issue #11244: The peephole optimizer is now able to constant-fold
Show description for 17b880a
pitrou
committed
17b880a
View commit details
Copy full SHA for 17b880a
View code at this point
Browse repository at this point
Commits on Nov 30, 2010
Remove redundant includes of headers that are already included by Python.h.
birkenfeld
committed
e5b99f0
View commit details
Copy full SHA for e5b99f0
View code at this point
Browse repository at this point
Commits on Aug 22, 2010
Issue 8403: Don't mask KeyboardInterrupt during peephole operation.
rhettinger
committed
819a064
View commit details
Copy full SHA for 819a064
View code at this point
Browse repository at this point
Commits on May 9, 2010
Recorded merge of revisions 81032 via svnmerge from
Show description for 7f14f0d
pitrou
committed
7f14f0d
View commit details
Copy full SHA for 7f14f0d
View code at this point
Browse repository at this point
Recorded merge of revisions 81029 via svnmerge from
Show description for f95a1b3
pitrou
committed
f95a1b3
View commit details
Copy full SHA for f95a1b3
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.