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
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 }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.7k
(2.7k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Lib
code.py
on
2.7
User selector
All users
Datepicker
All time
Commit history
Commits on Nov 12, 2009
this main is much more useful
benjaminp
committed
ccd6405
View commit details
Copy full SHA for ccd6405
View code at this point
Browse repository at this point
Commits on Aug 7, 2008
#1288615: Python code.interact() and non-ASCII input
pitrou
committed
74022ab
View commit details
Copy full SHA for 74022ab
View code at this point
Browse repository at this point
Commits on Feb 13, 2003
- Finally fixed the bug in compile() and exec where a string ending
Show description for 4b499dd
gvanrossum
committed
4b499dd
View commit details
Copy full SHA for 4b499dd
View code at this point
Browse repository at this point
Commits on Apr 4, 2002
Convert a pile of obvious "yes/no" functions to return bool.
tim-one
committed
bc0e910
View commit details
Copy full SHA for bc0e910
View code at this point
Browse repository at this point
Commits on Mar 25, 2002
make default banner match what the real interpreter displays
Skip Montanaro
committed
acb29ae
View commit details
Copy full SHA for acb29ae
View code at this point
Browse repository at this point
remove unqualified excepts - catch ImportError when trying to import
Show description for 0679a73
Skip Montanaro
committed
0679a73
View commit details
Copy full SHA for 0679a73
View code at this point
Browse repository at this point
Commits on Sep 18, 2001
softspace(): be prepared to catch AttributeError as well as TypeError
Show description for 555d12f
gvanrossum
committed
555d12f
View commit details
Copy full SHA for 555d12f
View code at this point
Browse repository at this point
Commits on Aug 17, 2001
A fiddled version of the rest of Michael Hudson's SF patch
Show description for 6cd6a82
tim-one
committed
6cd6a82
View commit details
Copy full SHA for 6cd6a82
View code at this point
Browse repository at this point
Commits on May 3, 2001
InteractiveInterpreter.showsyntaxerror():
Show description for c7745d4
freddrake
committed
c7745d4
View commit details
Copy full SHA for c7745d4
View code at this point
Browse repository at this point
Commits on Feb 9, 2001
String method conversion.
eric-s-raymond
committed
6b71e74
View commit details
Copy full SHA for 6b71e74
View code at this point
Browse repository at this point
Commits on Jan 20, 2001
added __all__ lists to a number of Python modules
Show description for e99d5ea
Skip Montanaro
committed
e99d5ea
View commit details
Copy full SHA for e99d5ea
View code at this point
Browse repository at this point
Commits on Jan 15, 2001
mwh@sourceforge found that UnicodeError can be raised by compiling.
Show description for 48450cf
gvanrossum
committed
48450cf
View commit details
Copy full SHA for 48450cf
View code at this point
Browse repository at this point
Commits on Jan 14, 2001
Make the copyright message the same as for the "real" interpreter.
gvanrossum
committed
c5f15b0
View commit details
Copy full SHA for c5f15b0
View code at this point
Browse repository at this point
Commits on Jan 13, 2001
SF Patch #103227 by mwh: make code.py appreciate softspace
gvanrossum
committed
4ec59c7
View commit details
Copy full SHA for 4ec59c7
View code at this point
Browse repository at this point
Commits on Dec 27, 2000
Make Traceback header conform to new traceback ("innermost last" ->
Show description for 7dd0696
gvanrossum
committed
7dd0696
View commit details
Copy full SHA for 7dd0696
View code at this point
Browse repository at this point
Commits on Feb 28, 2000
Simple changes by Gerrit Holl - move author acknowledgements out of
Show description for 98d9fd3
gvanrossum
committed
98d9fd3
View commit details
Copy full SHA for 98d9fd3
View code at this point
Browse repository at this point
Commits on Oct 22, 1998
Moved compile_command() to a file of its own (codeop.py).
gvanrossum
committed
5d42b5b
View commit details
Copy full SHA for 5d42b5b
View code at this point
Browse repository at this point
Commits on Oct 19, 1998
Rename 'locals' argument to top-level interact() function to 'local'
Show description for d90ae19
gvanrossum
committed
d90ae19
View commit details
Copy full SHA for d90ae19
View code at this point
Browse repository at this point
Commits on Sep 22, 1998
Reworked it quite a bit. There are now two classes: a base class,
Show description for 5227f0f
gvanrossum
committed
5227f0f
View commit details
Copy full SHA for 5227f0f
View code at this point
Browse repository at this point
Commits on Jun 23, 1998
Subsume the interact() function in a class. This should make it
Show description for a93b848
gvanrossum
committed
a93b848
View commit details
Copy full SHA for a93b848
View code at this point
Browse repository at this point
Commits on Mar 26, 1998
Mass check-in after untabifying all files that need it.
gvanrossum
committed
45e2fbc
View commit details
Copy full SHA for 45e2fbc
View code at this point
Browse repository at this point
Commits on Jan 14, 1998
Seems I've found a way to fix this.
gvanrossum
committed
8687164
View commit details
Copy full SHA for 8687164
View code at this point
Browse repository at this point
Commits on Oct 7, 1997
Add Jeff Epler's interact() function. Note that it is broken.
Show description for 90981e0
gvanrossum
committed
90981e0
View commit details
Copy full SHA for 90981e0
View code at this point
Browse repository at this point
Commits on Jul 18, 1997
Checking in new module code.py -- utilities dealing with code objects.
Show description for 1557a73
gvanrossum
committed
1557a73
View commit details
Copy full SHA for 1557a73
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.