severity 352624 wishlist tag 352624 +upstream thanks On Mon, Feb 13, 2006 at 01:23:22AM +0000, Greg Kochanski wrote: > 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.
This is definitely an upstream design issue. If you need to know what is inside a scipy module, the recommended way if to use from scipy import info info(scipy.stats) I strongly recommend discussing this issue on the scipy-dev mailing list[1], where you will be able to reach the core scipy developers easily. [1] http://scipy.net/mailman/listinfo/scipy-dev -- Alexandre Fayolle LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org Retrait du projet de loi DADVSI: http://eucd.info/petitions/index.php?petition=2
signature.asc
Description: Digital signature