|
|
|
|
|
by tenfingers
4088 days ago
|
|
Depends on your requirements on code/performance, but in one of my projects I've been gradually switching over to python 3 (actually, moving old stuff over from 2) by using this module: https://pypi.python.org/pypi/python-bond It spawns a second python process that you can call/execute code from almost invisibly, first-class exceptions included. The main difference with other similar solutions is that it support call backs: a remote function can call back new code, and can do it so recursively. You can intertwine old code and new one. The main drawback is that it's not efficient for small/lightweight functions. |
|