I am trying to implement a Setting class that should hold global settings for my application. From the base class I want to derive classes that should hold the actual setting value, can be int, str and so one... This looks like:
class Setting:
def __init__(self):
pass
class SettingInt(Setting, int):
"""
An int setting.
"""
def __init__(self, val = 0, **kw):
int.__init__(self, val, **kw)
Setting.__init__(self)
But when the SettingInt is used as
i = SettingInt(0, ul = 1)
I get an error:
TypeError: 'ul' is an invalid keyword argument for this function
Why?