Message 188188 - Python tracker

Message188188

Author terry.reedy
Recipients dmi.baranov, ezio.melotti, flox, georg.brandl, giampaolo.rodola, icordasc, kushal.das, lesmana, ncoghlan, petri.lehtinen, psss, r.david.murray, terry.reedy
Date 2013-04-30.22:02:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367359338.27.0.573518383821.issue12458@psf.upfronthosting.co.za>
In-reply-to
Content
idlelib has two files that *might* be helpful to anyone who wants to pursue this: PyParse.py and HyperParser.py. One use of the latter is for calltips. When the user types '(', the HyperParser is used first to determine whether the '(' is preceded by an operator (making it a grouper) or not (making it a call operator). In the later case, it parses backwards to find the beginning of the callable expression, which is then evaluated to get the callable (if it does not contain an embedded call) and hence the signature. Parsing forward and back from a given line might be similar.
History
Date User Action Args
2013-04-30 22:02:18terry.reedysetrecipients: + terry.reedy, georg.brandl, ncoghlan, giampaolo.rodola, ezio.melotti, psss, r.david.murray, flox, lesmana, petri.lehtinen, kushal.das, icordasc, dmi.baranov
2013-04-30 22:02:18terry.reedysetmessageid: <1367359338.27.0.573518383821.issue12458@psf.upfronthosting.co.za>
2013-04-30 22:02:18terry.reedylinkissue12458 messages
2013-04-30 22:02:18terry.reedycreate