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
Developer articles
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 }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.4k
(2.4k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Python
getopt.c
on
v2.2
User selector
All users
Datepicker
All time
Commit history
Commits on Nov 3, 2000
Move our own getopt() implementation to _PyOS_GetOpt(), and use it
Show description for 2cffc7d
Yhg1s
committed
2cffc7d
View commit details
Copy full SHA for 2cffc7d
View code at this point
Browse repository at this point
Commits on Jul 22, 2000
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
Show description for f70ef4f
Yhg1s
committed
f70ef4f
View commit details
Copy full SHA for f70ef4f
View code at this point
Browse repository at this point
Commits on Sep 13, 1999
Tim Peters discovered a bug in the Python-supplied getopt():
Show description for 2adac0a
gvanrossum
committed
2adac0a
View commit details
Copy full SHA for 2adac0a
View code at this point
Browse repository at this point
Commits on Dec 17, 1998
Patch by Chris Herborth:
Show description for 0e1d0e9
gvanrossum
committed
0e1d0e9
View commit details
Copy full SHA for 0e1d0e9
View code at this point
Browse repository at this point
Commits on Sep 30, 1997
Fix a bug in this code that made it do the wrong thing when an option
Show description for b4102bf
gvanrossum
committed
b4102bf
View commit details
Copy full SHA for b4102bf
View code at this point
Browse repository at this point
Commits on Apr 11, 1997
(Jack:) Don't define TRUE and FALSE if already defined.
gvanrossum
committed
62bf108
View commit details
Copy full SHA for 62bf108
View code at this point
Browse repository at this point
Commits on Jan 20, 1995
don't use function prototypes
gvanrossum
committed
10bb1c4
View commit details
Copy full SHA for 10bb1c4
View code at this point
Browse repository at this point
Commits on Apr 28, 1994
New version handles -o<string> same as -o <string>
gvanrossum
committed
871b805
View commit details
Copy full SHA for 871b805
View code at this point
Browse repository at this point
Commits on Apr 14, 1994
A getopt.c for your amusement
gvanrossum
committed
2508ade
View commit details
Copy full SHA for 2508ade
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.