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
Lib
cmd.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on May 4, 2025
gh-133363: Fix Cmd completion for lines beginning with `! ` (#133364)
godlygeek
authored
1d9406e
View commit details
Copy full SHA for 1d9406e
View code at this point
Browse repository at this point
Commits on Feb 17, 2025
gh-118761: Improve import time of `cmd` module (#130056)
Show description for 99d9656
donbarbos
authored
99d9656
View commit details
Copy full SHA for 99d9656
View code at this point
Browse repository at this point
Commits on May 22, 2024
Remove almost all unpaired backticks in docstrings (#119231)
Show description for ef17252
geofft
authored
ef17252
View commit details
Copy full SHA for ef17252
View code at this point
Browse repository at this point
Commits on Jan 3, 2024
gh-52161: Enhance Cmd support for docstrings (#110987)
Show description for 4c4b08d
fipachu
authored
4c4b08d
View commit details
Copy full SHA for 4c4b08d
View code at this point
Browse repository at this point
Commits on Dec 5, 2023
gh-102130: Support tab completion in cmd for Libedit. (GH-107748)
Show description for aa5bee3
Constantin1489
and
gaogaotiantian
authored
aa5bee3
View commit details
Copy full SHA for aa5bee3
View code at this point
Browse repository at this point
Commits on Nov 10, 2023
gh-80731: Avoid executing code in except block in cmd (GH-111740)
gaogaotiantian
authored
148af38
View commit details
Copy full SHA for 148af38
View code at this point
Browse repository at this point
Commits on May 4, 2022
gh-67248: cmd: Sort miscellaneous help topics (#92254)
Show description for 465fdc0
samwyse
authored
465fdc0
View commit details
Copy full SHA for 465fdc0
View code at this point
Browse repository at this point
Commits on Jul 4, 2013
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
brettcannon
committed
cd171c8
View commit details
Copy full SHA for cd171c8
View code at this point
Browse repository at this point
Commits on Jun 14, 2013
Issue #18200: Update the stdlib (except tests) to use
Show description for 0a14066
brettcannon
committed
0a14066
View commit details
Copy full SHA for 0a14066
View code at this point
Browse repository at this point
Commits on Dec 6, 2011
Close #13500: Hitting EOF gets cmd.py into a infinite EOF on return loop
jcea
committed
a9837d8
View commit details
Copy full SHA for a9837d8
View code at this point
Browse repository at this point
Commits on Sep 9, 2010
Add docstring to cmd.Cmd.do_help()
rhettinger
committed
44d7b6a
View commit details
Copy full SHA for 44d7b6a
View code at this point
Browse repository at this point
Commits on Aug 1, 2010
#8620: Cmd no longer truncates last character if stdin ends without newline
Show description for 7905d61
bitdancer
committed
7905d61
View commit details
Copy full SHA for 7905d61
View code at this point
Browse repository at this point
Commits on Jul 30, 2010
Remove redundant import.
birkenfeld
committed
06535ee
View commit details
Copy full SHA for 06535ee
View code at this point
Browse repository at this point
Commits on Jan 9, 2010
Merged revisions 77185-77188,77262,77313,77317,77331-77333,77337-77338 via svnmerge from
Show description for a28e702
benjaminp
committed
a28e702
View commit details
Copy full SHA for a28e702
View code at this point
Browse repository at this point
Commits on Oct 16, 2007
Patch# 1258 by Christian Heimes: kill basestring.
Show description for 3172c5d
gvanrossum
committed
3172c5d
View commit details
Copy full SHA for 3172c5d
View code at this point
Browse repository at this point
Commits on Aug 30, 2007
Raise statement normalization in Lib/.
collinw
committed
ce36ad8
View commit details
Copy full SHA for ce36ad8
View code at this point
Browse repository at this point
Commits on Jun 7, 2007
Fix pdb help command.
avassalotti
committed
7b955bd
View commit details
Copy full SHA for 7b955bd
View code at this point
Browse repository at this point
Commits on Apr 27, 2007
Merged revisions 53952-54987 via svnmerge from
Show description for d8faa36
gvanrossum
committed
d8faa36
View commit details
Copy full SHA for d8faa36
View code at this point
Browse repository at this point
Commits on Mar 17, 2006
Get rid of a bunch more raw_input references
nnorwitz
committed
ce96f69
View commit details
Copy full SHA for ce96f69
View code at this point
Browse repository at this point
Commits on Jul 7, 2004
Whitespace normalization.
tim-one
committed
4e0e1b6
View commit details
Copy full SHA for 4e0e1b6
View code at this point
Browse repository at this point
Commits on Jul 1, 2004
Fix
Show description for d7cc1bd
Michael W. Hudson
committed
d7cc1bd
View commit details
Copy full SHA for d7cc1bd
View code at this point
Browse repository at this point
Commits on Oct 22, 2003
Add docstring
akuchling
committed
7cebbf3
View commit details
Copy full SHA for 7cebbf3
View code at this point
Browse repository at this point
Commits on Feb 19, 2003
Whitespace normalization.
tim-one
committed
f2715e0
View commit details
Copy full SHA for f2715e0
View code at this point
Browse repository at this point
Commits on Feb 6, 2003
Updated version of [ 558544 ] cmd.py: add instance-specific stdin/out
Show description for 983b008
anthonybaxter
committed
983b008
View commit details
Copy full SHA for 983b008
View code at this point
Browse repository at this point
Commits on Feb 3, 2003
Fix bug
Show description for 35a92ce
Michael W. Hudson
committed
35a92ce
View commit details
Copy full SHA for 35a92ce
View code at this point
Browse repository at this point
Commits on Jan 13, 2003
Duh. cmdqueue should be an instance variable, not a class variable.
Show description for 87fec22
gvanrossum
committed
87fec22
View commit details
Copy full SHA for 87fec22
View code at this point
Browse repository at this point
Commits on Dec 2, 2002
Add a better columnizer to print_topics().
gvanrossum
committed
c706c28
View commit details
Copy full SHA for c706c28
View code at this point
Browse repository at this point
Commits on Jun 30, 2002
Code modernization. Replace v=s[i]; del s[i] with single lookup v=s.pop(i)
rhettinger
committed
46ac8eb
View commit details
Copy full SHA for 46ac8eb
View code at this point
Browse repository at this point
Commits on Jun 1, 2002
SF 563203. Replaced 'has_key()' with 'in'.
rhettinger
committed
54f0222
View commit details
Copy full SHA for 54f0222
View code at this point
Browse repository at this point
Commits on May 29, 2002
Patch 560023 adding docstrings. 2.2 Candidate (after verifying modules were not updated after 2.2).
rhettinger
committed
aef22fb
View commit details
Copy full SHA for aef22fb
View code at this point
Browse repository at this point
Commits on Mar 24, 2002
tighten up except - in this context, AttributeError is the only exception
Show description for 1ce0073
Skip Montanaro
committed
1ce0073
View commit details
Copy full SHA for 1ce0073
View code at this point
Browse repository at this point
Commits on Mar 23, 2002
Flush stdout before reading next command. Closes SF bug 526357.
nascheme
committed
d03c342
View commit details
Copy full SHA for d03c342
View code at this point
Browse repository at this point
Commits on Aug 9, 2001
Whitespace normalization.
tim-one
committed
ab9ba27
View commit details
Copy full SHA for ab9ba27
View code at this point
Browse repository at this point
Commits on Jul 28, 2001
Patch #416224: add readline completion to cmd.Cmd.
loewis
committed
66b6e19
View commit details
Copy full SHA for 66b6e19
View code at this point
Browse repository at this point
Commits on Jul 20, 2001
Use string.ascii_letters instead of string.letters (SF bug #226706).
freddrake
committed
79e75e1
View commit details
Copy full SHA for 79e75e1
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.