Skip to content

Commit 8f39b45

Browse files
committed
New
1 parent 5be0e85 commit 8f39b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ class MyMetaClass(type):
14611461
return type.__new__(cls, name, parents, attrs)
14621462
```
14631463
* **New() is a class method that gets called before init(). If it returns an instance of its class, then that instance gets passed to init() as a 'self' argument.**
1464-
* **It receives the same arguments as init(), except for the first one that specifies the desired class of returned instance (In this case 'MyMetaClass').**
1464+
* **It receives the same arguments as init(), except for the first one that specifies the desired class of returned instance (In our case 'MyMetaClass').**
14651465
* **New() can also be called directly, usually from a new() method of a child class (`'def __new__(cls): return super().__new__(cls)'`), in which case init() is not called.**
14661466

14671467
### Metaclass Attribute

0 commit comments

Comments
 (0)