On Wednesday, June 3, 2015 at 10:05:11 AM UTC+8, Isaiah wrote:
>
> I don't immediately see a way to get a reference to 'o' back out (it might
> be useful to save a reference, and would be pretty simple to add that to
> PyCall). However, there is a work-around -- do what you would do to find a
> module reference by name in Python:
>
Wouldn't it be easier to just call pyimport("math")? Python caches the
modules, so importing a second time will be fast (and in fact gives you
another reference/pointer to exactly the same module object).