(cls, type_dict)
Add additional methods to the type-dict of subclass 'name' of
    'super_class'.

    CLASS_METHODS is a global variable containing a mapping from
    class name to a list of Python method names and implementation.

    Matching entries from both mappings are added to the 'type_dict'.
Add additional methods to the type-dict of subclass 'name' of
    'super_class'.
Add additional methods to the type - dict of subclass name of super_class .
def add_convenience_methods(cls, type_dict):
    """
    Add additional methods to the type-dict of subclass 'name' of
    'super_class'.

    CLASS_METHODS is a global variable containing a mapping from
    class name to a list of Python method names and implementation.

    Matching entries from both mappings are added to the 'type_dict'.
    """
    for nm, value in CLASS_METHODS.get(cls.__name__, ()):
        type_dict[nm] = value

    try:
        for cls in CLASS_ABC[cls.__name__]:
            cls.register(cls)
        del CLASS_ABC[cls.__name__]
    except KeyError:
        pass
def add_convenience_methods ( cls , type_dict ) : for nm , value in CLASS_METHODS . get ( cls . __name__ , ( ) ) : type_dict [ nm ] = value try : for cls in CLASS_ABC [ cls . __name__ ] : cls . register ( cls ) del CLASS_ABC [ cls . __name__ ] except KeyError : pass