New submission from Cheryl Sabella <[email protected]>:
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.
----------
assignee: terry.reedy
components: IDLE
messages: 362149
nosy: cheryl.sabella, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Add additional tests for pyparse
versions: Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39663>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com