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 terry.reedy
Recipients cheryl.sabella, miss-islington, terry.reedy, tim.peters
Date 2020-01-23.04:30:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579753800.62.0.0141210730815.issue32989@roundup.psfhosted.org>
In-reply-to
Content
Tim, idlelib.pyparse has this definition:

# Find what looks like the start of a popular statement.
_synchre = re.compile(r"""
    ^
    [ \t]*
    (?: while
    |   else
    |   def
    |   return
    |   assert
    |   break
    |   class
    |   continue
    |   elif
    |   try
    |   except
    |   raise
    |   import
    |   yield
    )
    \b
""", re.VERBOSE | re.MULTILINE).search

You are credited with adding 'yield' to David Sherer's original list:
  "Taught IDLE's autoident parser that "yield" is a keyword that begins
   a stmt." --tim_one (found via git blame)

Do you know if there is any reason to not add 'if', 'for', and now 'with'?
History
Date User Action Args
2020-01-23 04:30:00terry.reedysetrecipients: + terry.reedy, tim.peters, cheryl.sabella, miss-islington
2020-01-23 04:30:00terry.reedysetmessageid: <1579753800.62.0.0141210730815.issue32989@roundup.psfhosted.org>
2020-01-23 04:30:00terry.reedylinkissue32989 messages
2020-01-23 04:30:00terry.reedycreate