#bump# On Mon, Oct 27, 2014 at 9:48 PM, Yuxiang Wang <yw5aj@virginia.edu> wrote:
(Sorry about sending this to the wrong list, scipy-user instead of scipy-dev, before; apologize to those who saw this twice)
Hi all,
I was reading through the link ( http://docs.scipy.org/doc/scipy/reference/api.html#guidelines-for-importing-... ) and it mentioned that the first form is preferred over the second one under most circumstances:
# first form from scipy import stats stats.lomax(...)
# second form from scipy.stats import distributions distributions.lomax(...)
I honestly think the second form is far more frequently used in the examples given in the document, for example:
http://docs.scipy.org/doc/scipy/reference/tutorial/special.html http://docs.scipy.org/doc/scipy/reference/tutorial/integrate.html http://docs.scipy.org/doc/scipy/reference/tutorial/optimize.html http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html http://docs.scipy.org/doc/scipy/reference/tutorial/fftpack.html
Would you think it'd be better to update this link?
-Shawn
-- Yuxiang "Shawn" Wang Gerling Research Lab University of Virginia yw5aj@virginia.edu +1 (434) 284-0836 https://sites.google.com/a/virginia.edu/yw5aj/