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
Doc
tutorial
classes.rst
on
v2.7.15
User selector
All users
Datepicker
All time
Commit history
Commits on Jan 2, 2018
bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#5082)
Show description for 0e0d101
miss-islington
authored and
bitdancer
committed
0e0d101
View commit details
Copy full SHA for 0e0d101
View code at this point
Browse repository at this point
Commits on May 4, 2017
[2.7] bpo-28315: Improve code examples in docs (GH-1372) (#1447)
Show description for e1b02ff
Mariatta
authored
e1b02ff
View commit details
Copy full SHA for e1b02ff
View code at this point
Browse repository at this point
Commits on Jun 18, 2016
Issue #24314: Add links for general attributes like __name__, __dict__
vadmium
committed
d51b0f2
View commit details
Copy full SHA for d51b0f2
View code at this point
Browse repository at this point
Commits on May 10, 2016
Issue #23921: Standardized documentation whitespace formatting.
Show description for 12d547a
serhiy-storchaka
committed
12d547a
View commit details
Copy full SHA for 12d547a
View code at this point
Browse repository at this point
Commits on Oct 31, 2014
minor grammar fixes (from docs@python.org)
birkenfeld
committed
c182f88
View commit details
Copy full SHA for c182f88
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
06f3b3b
View commit details
Copy full SHA for 06f3b3b
View code at this point
Browse repository at this point
Commits on Sep 5, 2014
Issue #20643: Fixed references to the next() method (distinguish from the
Show description for ea21772
serhiy-storchaka
committed
ea21772
View commit details
Copy full SHA for ea21772
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 58eb605
rhettinger
committed
58eb605
View commit details
Copy full SHA for 58eb605
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
9727880
View commit details
Copy full SHA for 9727880
View code at this point
Browse repository at this point
Commits on Dec 8, 2012
Drop double newlines printed in some file iteration examples.
Show description for bd5279e
asvetlov
committed
bd5279e
View commit details
Copy full SHA for bd5279e
View code at this point
Browse repository at this point
Commits on Apr 24, 2012
Improve section heading for better discoverability.
rhettinger
committed
ce0e0c7
View commit details
Copy full SHA for ce0e0c7
View code at this point
Browse repository at this point
Commits on Jan 11, 2012
Minor correction. Closes #11418
terryjreedy
committed
477a06c
View commit details
Copy full SHA for 477a06c
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
299172b
View commit details
Copy full SHA for 299172b
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
fd1cb59
View commit details
Copy full SHA for fd1cb59
View code at this point
Browse repository at this point
Commits on May 1, 2011
Split combined code/doctest code blocks in two blocks, to enable proper highlighting.
birkenfeld
committed
12b8fcf
View commit details
Copy full SHA for 12b8fcf
View code at this point
Browse repository at this point
Commits on Mar 22, 2011
Fix typo spotted by Sandro Tosi
merwok
committed
4fbd88a
View commit details
Copy full SHA for 4fbd88a
View code at this point
Browse repository at this point
Commits on Nov 26, 2010
Merged revisions 85617-85622,85624,85626-85627,85629,85631,85635-85636,85638-85639,85641-85642 via svnmerge from
Show description for b8d0e36
birkenfeld
committed
b8d0e36
View commit details
Copy full SHA for b8d0e36
View code at this point
Browse repository at this point
Commits on Aug 2, 2010
Merged revisions 83536,83546-83548,83550,83554-83555,83558,83563,83565,83571,83574-83575 via svnmerge from
Show description for 7d4bfb3
birkenfeld
committed
7d4bfb3
View commit details
Copy full SHA for 7d4bfb3
View code at this point
Browse repository at this point
Commits on Aug 1, 2010
Merged revisions 82965 via svnmerge from
Show description for 2c10840
birkenfeld
committed
2c10840
View commit details
Copy full SHA for 2c10840
View code at this point
Browse repository at this point
Commits on Jun 12, 2010
Fix punctuation.
birkenfeld
committed
b20ada0
View commit details
Copy full SHA for b20ada0
View code at this point
Browse repository at this point
Commits on Sep 1, 2009
#6808: clarification.
birkenfeld
committed
a88fd76
View commit details
Copy full SHA for a88fd76
View code at this point
Browse repository at this point
Commits on Aug 24, 2009
#6725: spell "namespace" consistently.
birkenfeld
committed
0cfbd65
View commit details
Copy full SHA for 0cfbd65
View code at this point
Browse repository at this point
Commits on Aug 13, 2009
Remove potentially confusing sentence in __mangling description.
birkenfeld
committed
aa66a96
View commit details
Copy full SHA for aa66a96
View code at this point
Browse repository at this point
Commits on Jul 29, 2009
Rewrite the section about classes a bit; mostly tidbits, and a larger update to the section about "private" variables to reflect the Pythonic consensus better.
birkenfeld
committed
4938fef
View commit details
Copy full SHA for 4938fef
View code at this point
Browse repository at this point
Commits on Feb 21, 2009
Issue #5341: Fix a variety of spelling errors.
mdickinson
committed
3e4caeb
View commit details
Copy full SHA for 3e4caeb
View code at this point
Browse repository at this point
Commits on Jan 3, 2009
Remove trailing whitespace.
birkenfeld
committed
c62ef8b
View commit details
Copy full SHA for c62ef8b
View code at this point
Browse repository at this point
Commits on Sep 13, 2008
Incorporate some suggestions by Tait Stevens.
birkenfeld
committed
3ce0dee
View commit details
Copy full SHA for 3ce0dee
View code at this point
Browse repository at this point
Commits on Jul 21, 2008
nonlocal is not in 2.6.
birkenfeld
committed
be44991
View commit details
Copy full SHA for be44991
View code at this point
Browse repository at this point
Commits on Mar 6, 2008
Add isinstance/issubclass to tutorial.
birkenfeld
committed
6c45dc1
View commit details
Copy full SHA for 6c45dc1
View code at this point
Browse repository at this point
Little clarification of assignments.
birkenfeld
committed
26bab5f
View commit details
Copy full SHA for 26bab5f
View code at this point
Browse repository at this point
Commits on Dec 29, 2007
Some cleanup in the docs.
birkenfeld
committed
b19be57
View commit details
Copy full SHA for b19be57
View code at this point
Browse repository at this point
Commits on Oct 21, 2007
Add :term:s for "new-style class".
birkenfeld
committed
a739503
View commit details
Copy full SHA for a739503
View code at this point
Browse repository at this point
Add :term: for generators.
birkenfeld
committed
cf3fb25
View commit details
Copy full SHA for cf3fb25
View code at this point
Browse repository at this point
Commits on Aug 15, 2007
Move the 2.6 reST doc tree in place.
birkenfeld
committed
8ec7f65
View commit details
Copy full SHA for 8ec7f65
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.