[Idle-dev] Calltip's patch...

Josh Robb josh_robb@fastmail.fm
Tue, 1 Oct 2002 00:22:46 +0200


Ok,

After some unexpected delays... (including a new pc!) Here is an updated
version of the diffs that are currently in the tracker for adding
Autocompletion to calltips. (i.e. Showing methods/attributes for a object
after you press '.').

The patch has been made against tonight's CVS so should apply cleanly. (But
it is my first IDLE patch so if it's no good let me know). It has been
lightly cleaned up. So is not _identical_ but it _should_ be functionally
identical.

The reason I have updated this patch was because I was about to implement
this feature myself and thought that I should at least look at this
implementation before starting from scratch. Should I add this updated
version to the patch in the manager? Or should I start re-working it and
then present that version?

I have several ideas for improvements to this implementation:
1. Auto completion is distinct from Calltips? Should they be independently
configurable/separate extensions?
2. The UI is non obvious and could be improved also does not use the config
stuff for keybindings.
3. There is common code which should be factored out. (For introspecting the
object at the cursor).
4. The code misses many common cases like 'self.', string/list/dict
literal's which can/should be caught.

I will start on this tonight so this is mainly just a reminder list for me.
Constructive input gratefully received.

j.