= 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
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
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
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
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
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
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
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
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
301 - 309 of 309 matches
Mail list logo