bad generator performance

2005-02-05 Thread Johannes Ahl mann
= depth + 1): yield y yield [self, False, depth] ### snip ### i'd appreciate any comments or explanations why the generator might be so much slower, as i had just decided to use generators more frequently and in the respective PEP they are praised as generally fast. thx, Joh

Re: bad generator performance

2005-02-05 Thread Johannes Ahl mann
sorry, forgot to post the profiling info for the recursive helper function. but generator is still FAR slower... 4095/10.0500.0000.1200.120 file.py:135(rek) Johannes -- http://mail.python.org/mailman/listinfo/python-list

Re: bad generator performance

2005-02-06 Thread Johannes Ahl-mann
here was a concise, clean way of doing this with generators which i had overlooked, or whether there was some blatant mistake in my code. thx, Johannes -- http://mail.python.org/mailman/listinfo/python-list

Re: bad generator performance

2005-02-06 Thread Johannes Ahl-mann
cts my profiling results... on my machine the generator version is repeatedly 10 times slower than the list version as well with python2.3 as with python2.4. i don't want to spam the list with hundreds of lines of source code, so i'll just cry a little and try to do something else than

image fourier transform

2005-02-14 Thread Johannes Ahl-mann
brary/module to do 2D image FFT in a simple manner. or am i just too dumb to see how this is supposed to work with the 1D fourier transforms?? thx, Johannes -- http://mail.python.org/mailman/listinfo/python-list

Solution for architecure dependence in Numeric ?

2005-02-18 Thread Johannes Nix|Johannes.Nix
ilename,'w',binary)) else: filename = sys.argv[1] a = cPickle.load(file(filename)) print a - So what would you suggest ? Can I hack Numeric to assume non-native 32 bit integer numbers ? Many thanks for any help, Johannes -- http://mail.python.org/mailman/listinfo/python-list

Question about uninstallation.

2014-09-27 Thread Gregory Johannes-Kinsbourg
Hello, This whole world of Python language is completely new to me (never programmed before in my life) - anyway sort of besides the point. Anyway, I’ve sort of been learning ‘all over the place’, that is to say that ill read something do it and then find out i should have done something else

Re: Running a subprocess in a venv

2023-10-21 Thread Johannes Findeisen via Python-list
c.kill() etc. Is this the answer you are looking for? Detailed docs: https://docs.python.org/3/library/subprocess.html Regards, Johannes -- https://mail.python.org/mailman/listinfo/python-list

Re: Running a subprocess in a venv

2023-10-21 Thread Johannes Findeisen via Python-list
On Sat, 21 Oct 2023 11:32:03 -0400 Larry Martell wrote: > On Sat, Oct 21, 2023 at 9:49 AM Johannes Findeisen > wrote: > > > > On Sat, 21 Oct 2023 09:01:18 -0400 > > Larry Martell via Python-list wrote: > > > > > I have a python script, and from that

<    1   2   3   4