def user(session, uid, ladder_ids=None):
data = get_user(session, uid)<EOL>resp = dict(data)<EOL>if not ladder_ids:<EOL><INDENT>return resp<EOL><DEDENT>resp['<STR_LIT>'] = {}<EOL>for ladder_id in ladder_ids:<EOL><INDENT>if isinstance(ladder_id, str):<EOL><INDENT>ladder_id = lookup_ladder_id(ladder_id)<EOL><DEDENT>try:<EOL><INDENT>ladder_data = dict(get_ladder(session, ladder_id, user_id=uid))<EOL>resp['<STR_LIT>'][ladder_id] = ladder_data<EOL><DEDENT>except VooblyError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return resp<EOL>
Get all possible user info by name.