On 9 Mai, 01:50, Barry Warsaw [EMAIL PROTECTED] wrote:
On behalf of the Python development team and the Python community, I
am happy to announce the third alpha release of Python 2.6, and the
fifth alpha release of Python 3.0.
After I installer Python 2.6a3, Matlab R2007a began having
jimmy.musselwhite at gmail.com writes:
The calculation looks like this
A = 0.35
T = 0.30
C = 0.25
G = 0.10
and then I basically continually multiply those numbers together. I
need to do it like 200,000+ times but that's nuts. I can't even do it
1000 times or the number rounds off to
What about something like:
class A(object):
def my_method(self):
print A.my_method
def call_my_method(self):
if type(self).my_method == A.my_method:
print Calling base class method.
else:
Ryan Ginstrom software at ginstrom.com writes:
How about:
def make_adder(i):
def adder(x):
return x+i
return adder
funcs = [make_adder(i) for i in xrange(10)]
print [func(10) for func in funcs]
[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
Or if you want a
Aahz aahz at pythoncraft.com writes:
In article mailman.430.1183825935.22759.python-list at python.org,
=?utf-8?b?U3TDqXBoYW5l?= Larouche stephane.larouche at polymtl.ca wrote:
Aahz aahz at pythoncraft.com writes:
Can you reproduce your problem with stub code that only creates threads?
compiler
and tell me if it also crashes (I tried Visual C++ 2005 Express Edition, but it
does not implement OpenMP). If the bug is with gcc, I will submit the problem to
the appropriate people.
Thank you,
Stéphane Larouche
--
http://mail.python.org/mailman/listinfo/python-list
://www.esnips.com/doc/9dba8ac7-70c7-4f98-a0fa-8ea315267073/gcc-4.2.0mingw-
release-patched-SSE).
Has anybody had a similar problem? Do you know how to solve it?
Thank you for your help,
Stéphane Larouche
--
http://mail.python.org/mailman/listinfo/python-list
Aahz aahz at pythoncraft.com writes:
In article mailman.412.1183729810.22759.python-list at python.org,
=?utf-8?b?U3TDqXBoYW5l?= Larouche stephane.larouche at polymtl.ca wrote:
If I call the methods in the C++ modules from the Python main thread, I
don't have any problem. However, they are