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
75k
Code
Issues
5k+
Pull requests
2.6k
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
Doc
tutorial
classes.rst
on
3.5
User selector
All users
Datepicker
All time
Commit history
Commits on May 4, 2017
[3.5] bpo-28315: Improve code examples in docs (GH-1372) (#1446)
Show description for 5274faf
Mariatta
authored
5274faf
View commit details
Copy full SHA for 5274faf
View code at this point
Browse repository at this point
Commits on Dec 18, 2016
#29005: clarify terminology in tutorial 'method' discussion.
Show description for 4ec1590
bitdancer
committed
4ec1590
View commit details
Copy full SHA for 4ec1590
View code at this point
Browse repository at this point
Commits on Nov 6, 2016
Issue #21864: Remove outdated section about exceptions from the tutorial
Show description for cea632e
berkerpeksag
committed
cea632e
View commit details
Copy full SHA for cea632e
View code at this point
Browse repository at this point
Commits on Jun 18, 2016
Issue #24314: Fix doc links for general attributes like __name__, __dict__
vadmium
committed
bae5d81
View commit details
Copy full SHA for bae5d81
View code at this point
Browse repository at this point
Commits on Jun 1, 2016
Fix typo in Python tutorial
berkerpeksag
committed
8e937f8
View commit details
Copy full SHA for 8e937f8
View code at this point
Browse repository at this point
Commits on May 10, 2016
Issue #23921: Standardized documentation whitespace formatting.
Show description for dba9039
serhiy-storchaka
committed
dba9039
View commit details
Copy full SHA for dba9039
View code at this point
Browse repository at this point
Commits on Oct 31, 2014
minor grammar fixes (from docs@python.org)
birkenfeld
committed
f0d2ed7
View commit details
Copy full SHA for f0d2ed7
View code at this point
Browse repository at this point
Commits on Oct 29, 2014
Use https:// URLs when referring to python.org hosts.
birkenfeld
committed
e73778c
View commit details
Copy full SHA for e73778c
View code at this point
Browse repository at this point
Commits on Aug 8, 2014
#22170: avoid printing newlines twice in tutorial example.
ezio-melotti
committed
79a1ffd
View commit details
Copy full SHA for 79a1ffd
View code at this point
Browse repository at this point
Commits on Jun 24, 2014
Issue #11974: Add tutorial section on class and instance variables
Show description for 04ba0bb
rhettinger
committed
04ba0bb
View commit details
Copy full SHA for 04ba0bb
View code at this point
Browse repository at this point
Commits on Oct 9, 2013
Issue #19193: Improved cross-references in the tutorial.
serhiy-storchaka
committed
91aaeac
View commit details
Copy full SHA for 91aaeac
View code at this point
Browse repository at this point
Commits on Oct 6, 2013
Remove newline in method that makes it possible to copy example to the interactive interpreter.
birkenfeld
committed
a0ec296
View commit details
Copy full SHA for a0ec296
View code at this point
Browse repository at this point
Commits on Oct 12, 2012
merge 3.2
benjaminp
committed
143d034
View commit details
Copy full SHA for 143d034
View code at this point
Browse repository at this point
Fix links to the __next__ method.
ezio-melotti
committed
7fa8222
View commit details
Copy full SHA for 7fa8222
View code at this point
Browse repository at this point
Commits on Mar 9, 2012
Fix closes Issue: 14217 - 3.2 branch
orsenthil
committed
065deda
View commit details
Copy full SHA for 065deda
View code at this point
Browse repository at this point
Fix closes Issue: 14217 - Appropriate sphinx directive for output. Patch by Tshepang Lekhonkhobe
orsenthil
committed
74d5657
View commit details
Copy full SHA for 74d5657
View code at this point
Browse repository at this point
Commits on Jan 11, 2012
Minor correction. #11418
terryjreedy
committed
ea868d3
View commit details
Copy full SHA for ea868d3
View code at this point
Browse repository at this point
Merge with 3.2
terryjreedy
committed
982c91e
View commit details
Copy full SHA for 982c91e
View code at this point
Browse repository at this point
Commits on Jul 29, 2011
Merge from 3.2 (#10318, #12255, #12043, #12417 and other fixes)
merwok
committed
2527796
View commit details
Copy full SHA for 2527796
View code at this point
Browse repository at this point
Commits on Jul 26, 2011
Make indentation comply with our style guide and the rest of the file
merwok
committed
72db345
View commit details
Copy full SHA for 72db345
View code at this point
Browse repository at this point
Commits on Jun 25, 2011
Issue 12086: add example showing how to use name mangling.
rhettinger
committed
6ddefd7
View commit details
Copy full SHA for 6ddefd7
View code at this point
Browse repository at this point
Issue 12086: add example showing how to use name mangling.
rhettinger
committed
142d0f5
View commit details
Copy full SHA for 142d0f5
View code at this point
Browse repository at this point
Commits on May 1, 2011
merge with 3.2
birkenfeld
committed
6c32b4a
View commit details
Copy full SHA for 6c32b4a
View code at this point
Browse repository at this point
Split combined code/doctest code blocks in two blocks, to enable proper highlighting.
birkenfeld
committed
da623ed
View commit details
Copy full SHA for da623ed
View code at this point
Browse repository at this point
Split combined code/doctest code blocks in two blocks, to enable proper highlighting.
birkenfeld
committed
2cdee70
View commit details
Copy full SHA for 2cdee70
View code at this point
Browse repository at this point
Commits on Mar 7, 2011
Name c -> cls in example.
birkenfeld
committed
52d3e7e
View commit details
Copy full SHA for 52d3e7e
View code at this point
Browse repository at this point
Commits on Oct 17, 2010
#9138: reword introduction to classes in Python.
birkenfeld
committed
a192828
View commit details
Copy full SHA for a192828
View code at this point
Browse repository at this point
Commits on Aug 2, 2010
Clarify that abs() is not a namespace.
birkenfeld
committed
17dafdc
View commit details
Copy full SHA for 17dafdc
View code at this point
Browse repository at this point
Commits on Jul 19, 2010
Clarification. Yay importlib!
birkenfeld
committed
0674255
View commit details
Copy full SHA for 0674255
View code at this point
Browse repository at this point
Commits on Jul 12, 2010
Remove mention of execfile from the tutorial.
mdickinson
committed
cf48e44
View commit details
Copy full SHA for cf48e44
View code at this point
Browse repository at this point
Commits on Jun 27, 2010
Merged revisions 80605-80609,80642-80646,80651-80652,80674,80684-80686,80748,80852,80854,80870,80872-80873,80907,80915-80916,80951-80952,80976-80977,80985,81038-81040,81042,81053,81070,81104-81105,…
Show description for d7c3ed5
benjaminp
committed
d7c3ed5
View commit details
Copy full SHA for d7c3ed5
View code at this point
Browse repository at this point
Commits on Feb 6, 2010
Recorded merge of revisions 78024 via svnmerge from
Show description for c4a55fc
birkenfeld
committed
c4a55fc
View commit details
Copy full SHA for c4a55fc
View code at this point
Browse repository at this point
Commits on Sep 1, 2009
Merged revisions 74542,74544-74548,74550,74554-74555,74578,74588,74590,74603,74616-74618,74621 via svnmerge from
Show description for a6053b4
birkenfeld
committed
a6053b4
View commit details
Copy full SHA for a6053b4
View code at this point
Browse repository at this point
Commits on Aug 13, 2009
Merged revisions 74411 via svnmerge from
Show description for dffc1b8
birkenfeld
committed
dffc1b8
View commit details
Copy full SHA for dffc1b8
View code at this point
Browse repository at this point
Fix duplicate sentence.
birkenfeld
committed
3517e37
View commit details
Copy full SHA for 3517e37
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.