On 01/08/2012 08:46 PM, Yigit Turgut wrote:
On Jan 9, 12:02 am, Dave Angel<d...@davea.name>  wrote:
<SNIP>
Then i'd try calling separate functions (declaring them in depfuncs).
And finally I'd try some 3rd party library.
Don't think will try another package for the same task. I am now
moving on to PP + PyCUDA to harness GPU available CPU cores.

Thank you for the guidance.

Actually, I wasn't suggesting an alternative to pp, but rather introducing refs to libraries like numpy. I don't know what pp's methodology is, but I can guess which parts are trivial, and which parts tend to be trickier. Once things are in a separate process, it's best not to assume any shared state between the processes. Thus I'd expect globals() to be copied, not shared. And the error messages had very low line numbers, which I could take to mean they didn't add your imports and other stuff.

Point is, when i start having trouble with code that's inadequately documented, I try the simplest things, and work up to the complex ones.



--

DaveA

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to