#NEWLINE# @ interactive #NEWLINE# def _pull( keys ) : #NEWLINE# #INDENT# 'helper method for implementing `client.pull` via `client.apply`' #NEWLINE# user_ns = globals ( ) #NEWLINE# if isinstance ( keys , ( list , tuple , set ) ) : #NEWLINE# #INDENT# for key in keys : #NEWLINE# #INDENT# if ( key not in user_ns ) : #NEWLINE# #INDENT# raise NameError ( ( "name '%s' is not defined" % key ) ) #NEWLINE# #UNINDENT# #UNINDENT# return list ( map ( user_ns . get , keys ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( keys not in user_ns ) : #NEWLINE# #INDENT# raise NameError ( ( "name '%s' is not defined" % keys ) ) #NEWLINE# #UNINDENT# return user_ns . get ( key )