This is what I\'m looking for:
def __init__(self, *args):
list_of_args = #magic
Parent.__init__(self, list_of_args)
I need to pass *args to
There is this piece of code that I picked up in sentdex tutorials that deals with this:
https://www.youtube.com/watch?v=zPp80YM2v7k&index=11&list=PLQVvvaa0QuDcOdF96TBtRtuQksErCEBYZ
Try this:
def test_args(*args):
lists = [item for item in args]
print lists
test_args('Sun','Rain','Storm','Wind')
Result:
['Sun', 'Rain', 'Storm', 'Wind']