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 ha

Re: Going past the float size limits?

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

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 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

Re: Mixing Python and C threads

2007-08-13 Thread Stéphane Larouche
Aahz pythoncraft.com> writes: > > In article python.org>, > =?utf-8?b?U3TDqXBoYW5l?= Larouche polymtl.ca> wrote: > >Aahz pythoncraft.com> writes: > >> > >> Can you reproduce your problem with stub code that only creates threads? > >> If yes, that indicates that you're messing with a thread s

Re: Mixing Python and C threads

2007-07-07 Thread Stéphane Larouche
) t.start() crashes. Would anybody be so kind and try to compile it with Microsoft or Intel 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

Re: Mixing Python and C threads

2007-07-06 Thread Stéphane Larouche
Aahz pythoncraft.com> writes: > In article python.org>, > =?utf-8?b?U3TDqXBoYW5l?= Larouche 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 usually called from another > >Python thread (using the thre

Mixing Python and C threads

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