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