homepage

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 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

AltStyle によって変換されたページ (->オリジナル) /