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 2018-03-03.00:44:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520037876.54.0.467229070634.issue32989@psf.upfronthosting.co.za>
In-reply-to
Content
From msg312726 on issue32880.

The call to find_good_parse_start:

    bod = y.find_good_parse_start(self.context_use_ps1, 
                         self._build_char_in_string_func(startatindex))

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,
                              _synchre=_synchre):


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:
https://github.com/python/cpython/commit/b17544551fc8dfd1304d5679c6e444cad4d34d97
History
Date User Action Args
2018-03-03 00:44:36cheryl.sabellasetrecipients: + cheryl.sabella, terry.reedy
2018-03-03 00:44:36cheryl.sabellasetmessageid: <1520037876.54.0.467229070634.issue32989@psf.upfronthosting.co.za>
2018-03-03 00:44:36cheryl.sabellalinkissue32989 messages
2018-03-03 00:44:36cheryl.sabellacreate