8000 fix dunder translation · pythonpeixun/interview_python@30546c7 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30546c7

Browse files
committed
fix dunder translation
1 parent 2547309 commit 30546c7

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