Installing a script and use it via python -m

2012-01-07 Thread Oktaka Com
Hi all, Is there a way to do below: 1) install via setup.py some script: xxx.py 2) python -m xxx.py In fact, this question opens to: Is there a platform independent way to copy xxx.py to somewhere that the system will search for? Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: multithreading, performance, again...

2010-01-18 Thread Oktaka Com
On 30 Aralık 2009, 17:44, mk wrote: > Hello everyone, > > I have figured out (sort of) how to do profiling of multithreaded > programs with cProfile, it goes something like this: > > #!/usr/local/bin/python > > import cProfile > import threading > > class TestProf(threading.Thread): >      def __i

Re: : yappi v0.2 beta

2009-10-27 Thread Oktaka Com
On Oct 27, 3:51 pm, Oktaka Com wrote: > Hi, > > yappi(Yet Another Python Profiler) is a C extension that have > multithreading profiling capability. Profiler can be started from any > thread at any time. All threads in the attached interpreter will be > profiled. > > Chang

[ANN]: yappi v0.2 beta

2009-10-27 Thread Oktaka Com
Hi, yappi(Yet Another Python Profiler) is a C extension that have multithreading profiling capability. Profiler can be started from any thread at any time. All threads in the attached interpreter will be profiled. Changes: - 8 multithreading related issues/bugs are fixed. - 1 memory leak(referenc