This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This attempts to abstarct away the standard way of using `__init__`, | |
the problem it tries to solve is the repetetiveness of using init purely | |
to store it's parameters into the instance under the exactly same name, i.e.: | |
class Stock: | |
def __init__(name, shares, price): | |
self.name = name | |
self.shares = shares | |
self.price = price | |
""" |