This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cheryl.sabella
Recipients cheryl.sabella, terry.reedy
Date 2020-02-17.14:23:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581949396.83.0.321867900398.issue39663@roundup.psfhosted.org>
In-reply-to
Content
Per msg313179, Terry asked to see tests for when the find_good_parse_start() call returns 0 instead of None.  There are two cases when a 0 might be returned:

1.  If the code is on the first line in the editor beginning with one of the matching keywords and ending in ":\n", such as "def spam():\n".
2.  If the code on the first line is entered as "def spam(", then the hyperparser adds the " \n" in its call to set_code and find_good_parse_start returns a 0.
History
Date User Action Args
2020-02-17 14:23:16cheryl.sabellasetrecipients: + cheryl.sabella, terry.reedy
2020-02-17 14:23:16cheryl.sabellasetmessageid: <1581949396.83.0.321867900398.issue39663@roundup.psfhosted.org>
2020-02-17 14:23:16cheryl.sabellalinkissue39663 messages
2020-02-17 14:23:16cheryl.sabellacreate