ikotler/pythonect — pull request #51 by guyadini (2012-09-05 05:51:32+00:00)
Title: Start of a refactoring attempt for __run

Still preliminary and far from perfect.

I broke __run into four big parts:
1. setup (initializing variables, etc.).
2. Process or thread?
3. Eval expression and catch exceptions.
4. eval_multiple_objects.
5. eval_single_object.

Items 4 and 5 were refactored into external functions, and I think that 2 and 3 should be, too.
Currently, the functions are very messy, with lots of parameters being passed around, but this can be improved if we like the way things are going.