adding all files done so far

This commit is contained in:
2019-07-10 20:18:31 +01:00
parent 13c0e9cb4d
commit e3ac390e8b
76 changed files with 8644 additions and 0 deletions

33
learning/super/notes.txt Normal file
View File

@@ -0,0 +1,33 @@
children precede their parents and the order of appearance in __bases__ is respected.
why not to use super in object classes: The problem with incompatible signatures https://www.artima.com/weblogs/viewpost.jsp?thread=281127
why (swap the print and super in each command)
class First(object):
def __init__(self):
super(First, self).__init__()
print("first")
class Second(object):
def __init__(self):
super(Second, self).__init__()
print("second")
class Third(First, Second):
def __init__(self):
super(Third, self).__init__()
print("third")
Third()
print(Third.__mro__)
second
first
third
(<class '__main__.Third'>, <class '__main__.First'>, <class '__main__.Second'>, <class 'object'>)
[Finished in 0.0s]
https://www.datacamp.com/community/data-science-cheatsheets
https://www.datacamp.com/community/tutorials/decorators-python - functions returning other functions?