PyMPI comm.gather problem

2010-05-11 Thread Peyman Askari
always constant. Furthermore, I added a sleep(5) command before the line to make sure it was not a synchronization issue. Has anyone got any possible ideas as to what could possibly be going wrong? Cheers Peyman Askari -- http://mail.python.org/mailman/listinfo/python-list

long int OverflowException

2010-04-28 Thread Peyman Askari
int, is being converted into a long int, and then leading to an exception. Cheers Peyman Askari -- http://mail.python.org/mailman/listinfo/python-list

Python Line Intersection

2010-04-09 Thread Peyman Askari
://www.maths.abdn.ac.uk/~igc/tch/eg1006/notes/node23.html). However, it requires that you solve for two equations. How can I do this in Python, either solve equations, or calculating intersection points some other way? Cheers Peyman Askari

Importing modules

2010-03-19 Thread Peyman Askari
I want to write a function which imports modules the first time, and reloads them afterwards, but I am running into problems with global variables and exec. I will include a full script, but let me elaborate first. Essentially what you need is def import_or_reload():  """assume we want to load

Re: a newbie's question

2010-03-11 Thread PEYMAN ASKARI
Hello I need some help dynamically reloading modules. As it turns out, it is not as simple as calling reload, as outlined here http://pyunit.sourceforge.net/notes/reloading.html Is there builtin support for this? The example they gave does not seem to work for me, and I am unclear as to what Py

Importing Modules

2010-03-10 Thread PEYMAN ASKARI
Hello I frequent the PyGtk mailing list all the time, but this is the first time I am posting here =) I wanted to know if imported classes are treated differently than internal classes. I have attached a minimal example which points out what I mean. Essentially, if I create a class: class A(