Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 482e82a

Browse files
committed
Corrected some spelling and one technical error.
1 parent e7f3953 commit 482e82a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Demo/metaclasses/meta-vladimir.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ programming model, examples and, perhaps, more popular terms.
4242
>>> A # What is A?
4343
<class __main__.A at 2023e360>
4444

45-
b) Class instanciation
45+
b) Class instantiation
4646

4747
Creating an object with the properties defined in the class A is
48-
called instanciation of the class A. After an instanciation of A, we
48+
called instantiation of the class A. After an instantiation of A, we
4949
obtain a new object, called an instance, which has the properties
5050
packaged in the class A.
5151

@@ -172,10 +172,10 @@ programming model, examples and, perhaps, more popular terms.
172172
>>> M # What is M?
173173
<metaclass __main__.M at 2023e4e0>
174174

175-
b) Meta-class instanciation
175+
b) Meta-class instantiation
176176

177177
Creating an object with the properties defined in the meta-class M is
178-
called instanciation of the meta-class M. After an instanciation of M,
178+
called instantiation of the meta-class M. After an instantiation of M,
179179
we obtain a new object, called an class, but now it is called also
180180
a meta-instance, which has the properties packaged in the meta-class M.
181181

@@ -241,7 +241,7 @@ programming model, examples and, perhaps, more popular terms.
241241
() # No.
242242
>>> N.__metabases__ # Does N have any supermetaclasses?
243243
(<metaclass __main__.M at 2023e360>,) # Yes. It has a supermetaclass.
244-
>>> N.__bases__[0] == M # Is it really the meta-class M?
244+
>>> N.__metabases__[0] == M # Is it really the meta-class M?
245245
1 # Yes, it is.
246246

247247
--------

0 commit comments

Comments
 (0)