Message362149
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. |
|
Date |
User |
Action |
Args |
2020-02-17 14:23:16 | cheryl.sabella | set | recipients:
+ cheryl.sabella, terry.reedy |
2020-02-17 14:23:16 | cheryl.sabella | set | messageid: <1581949396.83.0.321867900398.issue39663@roundup.psfhosted.org> |
2020-02-17 14:23:16 | cheryl.sabella | link | issue39663 messages |
2020-02-17 14:23:16 | cheryl.sabella | create | |
|