On 31/05/2008, Paul Moore firstname.lastname@example.org wrote:
2008/5/30 Farshid Lashkari email@example.com:
I'm not sure if there will be any side affects to modifying sys.executable though. Should this be the official way of supporting embedded interpreters or should there be a multiprocessing.setExecutable() method?
+1 for setExecutable (I'd prefer set_executable, to be PEP 8 compliant). Make it explicit, rather than fiddling with stuff in sys manually.
That is easy to do.
An issue not mentioned in the PEP is naming conventions. In recent versions I have tried to consistently use mixedCase for functions and methods (other than factory functions) because that is what threading does (give or take settrace(), setprofile(), stack_size().)
I am certainly open to using lowercase/lower_case_with_underscores for all functions/methods except for Process's methods and possibly currentProcess(), but I would like some feed back on that.