New submission from Cheryl Sabella <>:

>From msg312726 on issue32880.

The call to find_good_parse_start:

    bod = y.find_good_parse_start(self.context_use_ps1, 

sends 3 parameters.  And in pyparse.find_good_parse_start(), the signature 
allows 3.  However, the signature is:

    def find_good_parse_start(self, is_char_in_string=None,

This means that the `False` value in `self.use_context_ps1` is the first value 
instead of the function, so pyparse is always executing:

    if not is_char_in_string:
        # no clue -- make the caller pass everything
        return None

Here's the commit that changed the signature:

assignee: terry.reedy
components: IDLE
messages: 313170
nosy: csabella, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Incorrect signature in call from editor to 
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8

Python tracker <>
Python-bugs-list mailing list

Reply via email to