You can assume that the filename argument is the first argument for the function to decorate.
in specification, the first argument could be assumed to be a filename.
However initializer's first argument is "self", so exception occurs when I use it as filename.
The first argument here means the first one after the self, since self should be there by default in python. So you will have to put additional argument after self, which you called it as '2nd' one :)
in specification, the first argument could be assumed to be a filename. However initializer's first argument is "self", so exception occurs when I use it as filename.
Is it ok to assume that 2nd argument is filename?