original_docstring: 
      Return a list of users on Windows
      
docstring: Return a list of users on Windows
docstring_tokens: Return a list of users on Windows
code: def list_users():
      '''
      Return a list of users on Windows
      '''
      res = 0
      users = []
      user_list = []
      dowhile = True
      try:
          while res or dowhile:
              dowhile = False
              (users, _, res) = win32net.NetUserEnum(
                  None,
                  0,
                  win32netcon.FILTER_NORMAL_ACCOUNT,
                  res,
                  win32netcon.MAX_PREFERRED_LENGTH
              )
              for user in users:
                  user_list.append(user['name'])
          return user_list
      except win32net.error:
          pass
code_tokens: def list_users ( ) : res = 0 users = [ ] user_list = [ ] dowhile = True try : while res or dowhile : dowhile = False ( users , _ , res ) = win32net . NetUserEnum ( None , 0 , win32netcon . FILTER_NORMAL_ACCOUNT , res , win32netcon . MAX_PREFERRED_LENGTH ) for user in users : user_list . append ( user [ 'name' ] ) return user_list except win32net . error : pass
short_docstring: Return a list of users on Windows
short_docstring_tokens: Return a list of users on Windows
comment: '''
      Return a list of users on Windows
      '''