pypet/utils/decorators.py
def _prfx_getattr_(obj, item):
    """Replacement of __getattr__"""
    if item.startswith('f_') or item.startswith('v_'):
        return getattr(obj, item[2:])
    raise AttributeError('`%s` object has no attribute `%s`' % (obj.__class__.__name__, item))
def _prfx_getattr_(obj, item):
    """Replacement of __getattr__"""
    if item.startswith('f_') or item.startswith('v_'):
        return getattr(obj, item[2:])
    raise AttributeError('`%s` object has no attribute `%s`' % (obj.__class__.__name__, item))
def _prfx_getattr_ ( obj , item ) : if item . startswith ( 'f_' ) or item . startswith ( 'v_' ) : return getattr ( obj , item [ 2 : ] ) raise AttributeError ( '`%s` object has no attribute `%s`' % ( obj . __class__ . __name__ , item ) )
Replacement of __getattr__
Replacement of __getattr__