#NEWLINE# def get_question_answer_id( self , question , fast = False , bust_questions_cache = False ) : #NEWLINE# #INDENT# "Get the index of the answer that was given to `question`\n\n        See the documentation for :meth:`~.get_user_question` for important\n        caveats about the use of this function.\n\n        :param question: The question whose `answer_id` should be retrieved.\n        :type question: :class:`~okcupyd.question.BaseQuestion`\n        :param fast: Don't try to look through the users existing questions to\n                     see if arbitrarily answering the question can be avoided.\n        :type fast: bool\n        :param bust_questions_cache: :param bust_questions_cache: clear the\n                                     :attr:`~okcupyd.profile.Profile.questions`\n                                     attribute of this users\n                                     :class:`~okcupyd.profile.Profile`\n                                     before looking for an existing answer.\n                                     Be aware that even this does not eliminate\n                                     all race conditions.\n        :type bust_questions_cache: bool\n        " #NEWLINE# if hasattr ( question , 'answer_id' ) : #NEWLINE# #INDENT# return question . answer_id #NEWLINE# #UNINDENT# user_question = self . get_user_question ( question , fast = bust_questions_cache , bust_questions_cache = bust_questions_cache ) #NEWLINE# return user_question . get_answer_id_for_question ( question )