[SciPy-dev] Some suggestions for scipy_core
Francesc Altet
faltet at carabos.com
Mon Jan 2 13:35:09 EST 2006
A Dilluns 02 Gener 2006 18:05, Fernando Perez va escriure:
> > Maybe unrelated with this discussion, but important anyway because of
> > the (supposedly) large userbase that ipython have is the fact that
> > ipython will call the __call__() function for the object, if it founds
> > it. This makes things worse for the (ipython) user that wants just to
> > print the value of the dtype object.
>
> This is a known case of the tension between convenience and correctness,
> that ipython tries (not always successfully) to balance.
>
> Note that to aid a little in situations like these, ipython offers some
> options:
[snip]
Yes, I knew this. But the point is that newbie users (and not as
newbie, because I find toggling autocall on and off a bit annoying),
will be somewhat surprised about the results. This was actually the
main reason why I've decided to turn off the __call__() in many
objects in PyTables. The other reason is that I replaced __call__() by
more meaningful names and the result is far more readable (you know,
explicit is better than implicit).
Thanks anyway for remembering,
--
>0,0< Francesc Altet http://www.carabos.com/
V V Cárabos Coop. V. Enjoy Data
"-"
More information about the SciPy-Dev
mailing list