Your message dated Mon, 14 Jul 2008 22:40:12 +0200
with message-id <[EMAIL PROTECTED]>
and subject line please confirm
has caused the Debian Bug report #352624,
regarding python2.4-scipy: delayed import gives a bad __dict__
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
352624: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=352624
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: python2.4-scipy
Version: 0.3.2-8
Severity: normal


Because import scipy.stats doesn't actually do the import
(it returns a fancy __ppinport_p_frame object that seems
to do a delayed import), the __dict__ attribute is
not what one expects and is pretty much useless.
As is dir(scipy.stats).

Neither one tells you what is inside the scipy.stats
module.     Ideally, one would do something fancy
with __ppinport_p_frame.__getattribute__ so that
when one asked for __dict__,
__getattribute__ would be called,
the module would be imported,
and the actual __dict__ of the scipy.stats module
would be returned.

Example:

import scipy.stats
print scipy.stats.__dict__


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages python2.4-scipy depends on:
ii  atlas3-base [liblapack.s 3.6.0-19        Automatically Tuned Linear Algebra
ii  atlas3-sse2 [liblapack.s 3.6.0-19        Automatically Tuned Linear Algebra
ii  fftw2 [fftw2-double]     2.1.3-16.2      Library for computing Fast Fourier
ii  libc6                    2.3.5-8         GNU C Library: Shared libraries an
ii  libg2c0                  1:3.4.5-1       Runtime library for GNU Fortran 77
ii  libgcc1                  1:4.0.2-5       GCC support library
ii  libstdc++6               4.0.2-5         The GNU Standard C++ Library v3
ii  libx11-6                 6.8.2.dfsg.1-11 X Window System protocol client li
ii  python                   2.3.5-5         An interactive high-level object-o
ii  python2.4                2.4.2-2         An interactive high-level object-o
ii  python2.4-numeric        24.2-1          Numerical (matrix-oriented) Mathem
ii  python2.4-scipy-core     0.3.2-6         low level utilities for scipy (for
ii  xlibs                    6.8.2.dfsg.1-11 X Window System client libraries m

Versions of packages python2.4-scipy recommends:
ii  g++ [c++-compiler]            4:4.0.2-2  The GNU C++ compiler
ii  g++-4.0 [c++-compiler]        4.0.2-5    The GNU C++ compiler
pn  python2.4-f2py                <none>     (no description available)

-- no debconf information


--- End Message ---
--- Begin Message ---
Hi,

this problem seems to be fixed in the recent package now in Debian:

In [1]: import scipy.stats

In [2]: print scipy.stats.__dict__
{'genhalflogistic': <scipy.stats.distributions.genhalflogistic_gen
object at 0x931c98c>, 'binom_test': <function binom_test at 0x93a50d4>,
'triang': <scipy.stats.distributions.triang_gen object at 0x932b90c>,
'f_oneway': <function f_oneway at 0x92548b4>, 'logser':
<scipy.stats.distributions.logser_gen instance at 0x933432c>,
'rayleigh': <scipy.stats.distributions.rayleigh_gen object at
0x932b54c>, 'betaprime': <scipy.stats.distributions.betaprime_gen object
at 0x931424c>, 'zmap': <function zmap at 0x925472c>, 'levy':
<scipy.stats.distributions.
[...]


So I am closing the issue. However if you disagree, feel free to reopen
it at any time with more information.

Thanks for your bugreport,
Ondrej



--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

Reply via email to