I can't seem to get the following to work. It is not the whole program, just an excerpt:
from zipline.finance.commission import PerShare
class NewPerShare(PerShare):
def __init__(self):
PerShare.__init__(self)
set_commission(NewPerShare())
I get an error:
TypeError: unbound method __init__() must be called with PerShare instance as first argument (got nothing instead)
So far as I know the syntax is correct. Can anyone here help me understand why this doesn't work?
Thanks,
Sunil