how to determine an 'open' string?
Michael Hudson
mwh at python.net
Fri May 17 05:25:27 EDT 2002
holger krekel <pyth at devel.trillke.net> writes:
> Michael Hudson wrote:
> > [me]
> > > [you]
> > > >
> > > > You're going to have fun with strings containing spaces aren't you?
> > >
> > > huh? not that i know of :-)
> >
> > Because of the way readline works. It calls the completer function
> > with the word stem, so if the buffer looks like
> >
> > >>> "a very long string
> > ^
> > when you hit TAB the completer will get sent just "string" (I think).
>
> Actually what you get is everything from the last 'delimiter'.
> Delimiters are set via readline.set_completer_delims(delims_str).
Ah yes. Does that actually work? I seem to remember a report of it
not working properly, but can't find it now...
Cheers,
M.
--
MAN: How can I tell that the past isn't a fiction designed to
account for the discrepancy between my immediate physical
sensations and my state of mind?
-- The Hitch-Hikers Guide to the Galaxy, Episode 12
More information about the Python-list
mailing list