class ParamMeta(type):
def __str__(self):
return self.__name__
class Param(object):
__metaclass__=ParamMeta
class SomeParam(Param):
pass
What I want is for:
type(SomeParam)==Param
How do I achieve this?
Update: what do I need to change to have the desired behavior?
Update2: For posterity: this question is totally and utterly bogus. Please pretend you haven't seen it ;)