8000 Merge pull request #27 from kkzxak47/master · pythonpeixun/interview_python@b413fe3 · GitHub
[go: up one dir, main page]

Skip to content

Commit b413fe3

Browse files
authored
Merge pull request taizilongxu#27 from kkzxak47/master
fix dunder translation
2 parents 92b625a + 30546c7 commit b413fe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
- [26 Python的is](#26-python的is)
3838
- [27 read,readline和readlines](#27-readreadline和readlines)
3939
- [28 Python2和3的区别](#28-python2和3的区别)
40-
- [29 super.__init__()](#29-super-init)
40+
- [29 super.`__init__`()](#29-super-init)
4141
- [30 range-and-xrange](#30-range-and-xrange)
4242
- [操作系统](#操作系统)
4343
- [1 select,poll和epoll](#1-selectpoll和epoll)
@@ -664,7 +664,7 @@ is是对比地址,==是对比值
664664
## 29 super init
665665
super() lets you avoid referring to the base class explicitly, which can be nice. But the main advantage comes with multiple inheritance, where all sorts of fun stuff can happen. See the standard docs on super if you haven't already.
666666

667-
Note that the syntax changed in Python 3.0: you can just say super().__init__() instead of super(ChildB, self).__init__() which IMO is quite a bit nicer.
667+
Note that the syntax changed in Python 3.0: you can just say super().`__init__`() instead of super(ChildB, self).`__init__`() which IMO is quite a bit nicer.
668668

669669
http://stackoverflow.com/questions/576169/understanding-python-super-with-init-methods
670670

0 commit comments

Comments
 (0)
0