#NEWLINE# def query( self , * args , **kwargs ) : #NEWLINE# #INDENT# '\n        Get a user\'s metadata.\n        See `<https://www.mediawiki.org/wiki/API:Users>`_\n\n        :Parameters:\n            users : str\n                The usernames of the users to be retrieved.\n            \n            properties : set(str)\n                Include additional pieces of information\n\n                blockinfo      - Tags if the user is blocked, by whom, and\n                                 for what reason\n                groups         - Lists all the groups the user(s) belongs to\n                implicitgroups - Lists all the groups a user is automatically\n                                 a member of\n                rights         - Lists all the rights the user(s) has\n                editcount      - Adds the user\'s edit count\n                registration   - Adds the user\'s registration timestamp\n                emailable      - Tags if the user can and wants to receive\n                                 email through [[Special:Emailuser]]\n                gender         - Tags the gender of the user. Returns "male",\n                                 "female", or "unknown"\n        ' #NEWLINE# done = False #NEWLINE# while ( not done ) : #NEWLINE# #INDENT# ( us_docs , query_continue ) = self . _query ( * args , ** kwargs ) #NEWLINE# for doc in us_docs : #NEWLINE# #INDENT# ( yield doc ) #NEWLINE# #UNINDENT# if ( ( query_continue is None ) or ( len ( us_docs ) == 0 ) ) : #NEWLINE# #INDENT# done = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# kwargs [ 'query_continue' ] = query_continue