[SciPy-Dev] Difference between scipy.stats.gengamma and scipy.stats.distributions.gengamma
Wed Jun 2 15:21:32 CDT 2010
On Jun 2, 2010, at 12:26 AM, email@example.com wrote:
> On Wed, Jun 2, 2010 at 1:09 AM, David Goldsmith <firstname.lastname@example.org> wrote:
>> Is there a difference between these two? Same question for stats.lognorm
>> and stats.distributions.lognorm? Thanks.
> No, they are the same instance of the distribution
> scipy.stats.__init__ has a from distributions import * or something like this
In general, the original design concept in scipy name-spaces is that names should not be imported from their "leaf-node", but from somewhere higher up. The fact that the distribution objects are in scipy.stats.distributions should not be relied upon.
This is the same philosophy in NumPy (i.e. you shouldn't import things from numpy.core or numpy.lib directly).
>> Mathematician: noun, someone who disavows certainty when their uncertainty
>> set is non-empty, even if that set has measure zero.
>> Hope: noun, that delusive spirit which escaped Pandora's jar and, with her
>> lies, prevents mankind from committing a general suicide. (As interpreted
>> by Robert Graves)
>> SciPy-Dev mailing list
> SciPy-Dev mailing list
More information about the SciPy-Dev