[IPython-dev] getdoc hook

Fernando Perez Fernando.Perez at colorado.edu
Fri Apr 8 09:18:06 CDT 2005


Fernando Perez wrote:
> Frédéric Mantegazza wrote:

>>So I will always have a call to the remote object getdoc() method (little 
>>overhead)...
> 
> 
> Well, let me see if I can clean that up a bit.  I really don't like the fact 
> that _ofind() fishes out the docstring always, since quite often you don't 
> really need it.  I may be able to change things so that getdoc() only gets 
> called if the docstring is actually going to be used.  Stay tuned.

OK, I cleaned things up and now getdoc() should only get called (once) when 
it's actually needed.  This is much better, please test and let me know how it 
goes.

Best

f




More information about the IPython-dev mailing list