No, you can't and shouldn't call an instance method from a class without an instance. This would be very bad. You can, however call, a class method from and instance method. Options are
- make
get_param
a class method and fix references to it - have
__init__
callget_param
, since it is a instance method
Also you may be interested in an AttrDict since that looks like what you are trying to do.