Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3fbd7001
Commit
3fbd7001
authored
Jul 12, 2017
by
Trey Hunner
Committed by
Mariatta
Jul 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-30466: Add brief explanation of classes to tutorial (GH-1804)
parent
ab025e31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Doc/tutorial/classes.rst
Doc/tutorial/classes.rst
+6
-0
No files found.
Doc/tutorial/classes.rst
View file @
3fbd7001
...
...
@@ -4,6 +4,12 @@
Classes
*******
Classes provide a means of bundling data and functionality together. Creating
a new class creates a new *type* of object, allowing new *instances* of that
type to be made. Each class instance can have attributes attached to it for
maintaining its state. Class instances can also have methods (defined by its
class) for modifying its state.
Compared with other programming languages, Python's class mechanism adds classes
with a minimum of new syntax and semantics. It is a mixture of the class
mechanisms found in C++ and Modula-3. Python classes provide all the standard
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment