Re: RELEASED Python 2.6a3 and 3.0a5

2008-05-09 Thread Stéphane Larouche
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

Re: Going past the float size limits?

2007-10-26 Thread Stéphane Larouche
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

Re: Can a base class know if a method has been overridden?

2007-09-24 Thread Stéphane Larouche
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:

Re: lambda-funcs problem

2007-09-19 Thread Stéphane Larouche
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

Re: Mixing Python and C threads

2007-08-13 Thread Stéphane Larouche
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?

Re: Mixing Python and C threads

2007-07-07 Thread Stéphane Larouche
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

Mixing Python and C threads

2007-07-06 Thread Stéphane Larouche
://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

Re: Mixing Python and C threads

2007-07-06 Thread Stéphane Larouche
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