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
7833ab35
Commit
7833ab35
authored
Aug 10, 1998
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected some spelling and one technical error.
parent
6d09b712
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Demo/metaclasses/meta-vladimir.txt
Demo/metaclasses/meta-vladimir.txt
+5
-5
No files found.
Demo/metaclasses/meta-vladimir.txt
View file @
7833ab35
...
...
@@ -42,10 +42,10 @@ programming model, examples and, perhaps, more popular terms.
>>> A # What is A?
<class __main__.A at 2023e360>
b) Class instan
c
iation
b) Class instan
t
iation
Creating an object with the properties defined in the class A is
called instan
ciation of the class A. After an instanc
iation of A, we
called instan
tiation of the class A. After an instant
iation of A, we
obtain a new object, called an instance, which has the properties
packaged in the class A.
...
...
@@ -172,10 +172,10 @@ programming model, examples and, perhaps, more popular terms.
>>> M # What is M?
<metaclass __main__.M at 2023e4e0>
b) Meta-class instan
c
iation
b) Meta-class instan
t
iation
Creating an object with the properties defined in the meta-class M is
called instan
ciation of the meta-class M. After an instanc
iation of M,
called instan
tiation of the meta-class M. After an instant
iation of M,
we obtain a new object, called an class, but now it is called also
a meta-instance, which has the properties packaged in the meta-class M.
...
...
@@ -241,7 +241,7 @@ programming model, examples and, perhaps, more popular terms.
() # No.
>>> N.__metabases__ # Does N have any supermetaclasses?
(<metaclass __main__.M at 2023e360>,) # Yes. It has a supermetaclass.
>>> N.__
bases__[0] == M
# Is it really the meta-class M?
>>> N.__
metabases__[0] == M
# Is it really the meta-class M?
1 # Yes, it is.
--------
...
...
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