3 ms·
Can't you use scipy.__dict__ to look up the function name in this case? scipy.__dict__[x](2)
by IgorPartola 16y ago
Can't you use scipy.__dict__ to look up the function name in this case?
scipy.__dict__[x](2)
- bobbyi 16y agoIt would be preferable to use getattr(scipy, x) rather than reaching inside the internals of the object (module).