[IPython-dev] Auto-calling question
danmil at comcast.net
Mon Feb 26 13:47:28 EST 2007
That's way helpful -- it seemed like it *should* work that way, but
it doesn't (i.e. the other escape chars are always active -- why not
I do have an idea for cleaning up all that prefilter code, so I'll
see if I can fix that all together once I get the tests up and running.
Will hopefully have a decent set of tests to submit soonish (which
will fail for this behavior ;-).
On Feb 26, 2007, at 12:43 PM, Fernando Perez wrote:
> On 2/26/07, Dan Milstein <danmil at comcast.net> wrote:
>> I'm working my way through the prefilter code and I have a question
>> which isn't clear from the docs (to me, at least):
>> Are the ';', ',', and '/' escapes only supposed to be live if the
>> user has %autocall on? Or are they supposed to be live all the time?
>> Currently, they're only live if %autocall *is* on, but the code is a
>> bit confusing on that front, and I'm not 100% certain that's what's
> That code is hideously confusing and brittle, unfortunately. I
> /think/ (I honestly don't exactly remember) the original intent was
> for the special first-character escapes to be always active, with the
> autocall behavior controlling only the automatic addition of parens
> without any user input.
> So if you have a patch that restores this functionality without
> breaking anything else in the beautiful plate of spaghetti that
> _prefilter() is, by all means send it in :)
More information about the IPython-dev