[IPython-user] Prompt expressions
fperez.net at gmail.com
Fri Jun 16 02:13:40 CDT 2006
On 6/16/06, Ville Vainio <vivainio at gmail.com> wrote:
> On 6/16/06, Walter Dörwald <walter at livinglogic.de> wrote:
> > BTW, should we endorse the "ip = self.api" "trick" that the code uses?
> Yes, I think we should (and I'm sure Fernando would agree, having
> endorsed direct attribute / property approach previously). I've been
> using "self.getapi()" in the past but that's an extra function call
> that gets called *lots* of times when we get more hooks, magics and
> other extension points.
Go for it. If we later need extra validation, that's what properties are for.
More information about the IPython-user