[SciPy-Dev] scipy.factorial in python 3.2
josef.pktd at gmail.com
josef.pktd at gmail.com
Sun Apr 10 16:26:55 EDT 2011
On Sun, Apr 10, 2011 at 4:14 PM, Robert Kern <robert.kern at gmail.com> wrote:
> On Sun, Apr 10, 2011 at 12:22, <josef.pktd at gmail.com> wrote:
>> python 3.2 (64 bit version) doesn't have scipy.factorial anymore, with
>> python 2.7 it's there.
>>
>> Is this intentional?
>
> Yes. We stopped using the pkgload() mechanism (the key difference is
> numpy/scipy versions, not Python versions). We have been trying to
> discourage the use of the scipy.* namespace for some time now. Use the
> subpackages.
I have scipy 0.9.0 on python 2.6, 2.7 and on 3.2
>>> import scipy
>>> scipy.__version__
'0.9.0'
On 2.6 and 2.7 factorial is still in the scipy. namespace, but not in 3.2
I thought some scipy.misc function where still an exception to the
load the subpackage rule
>>> import sys
>>> sys.version
'2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]'
>>> import scipy
>>> scipy.__version__
'0.9.0'
>>> set(dir(scipy)) & set(dir(scipy.misc))
set(['info', 'lena', 'comb', 'pade', '__all__', 'Tester', 'factorial',
'factorialk', '__file__', 'who', '__builtins__',
'central_diff_weights', '__package__', '__path__', 'source',
'__name__', 'test', 'derivative', 'factorial2', '__doc__'])
>>>
>>> import sys
>>> sys.version
'3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)]'
>>> import scipy
>>> scipy.__version__
'0.9.0'
>>> set(dir(scipy)) & set(dir(scipy.misc))
{'__cached__', 'info', '__all__', 'Tester', '__builtins__',
'__file__', 'who', '__package__', '__path__', 'source', 'test',
'__name__', '__doc__'}
I'm fine loading from misc, I was just surprised
Josef
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
> -- Umberto Eco
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
More information about the SciPy-Dev
mailing list