asyncio

2015-03-27 Thread Łukasz Ligowski
Hi, I wrote simple asyncio program (see below) and I'm not sure if I understand behavior correctly. I have print_tasks coroutine which prints each task in a loop by using Task.all_tasks function. I have also task_launcher coroutine that launches (by loop.create_task()) simple task that waits some

Re: "xxx.has_key(a)" vs "a in xxx"

2008-10-30 Thread Łukasz Ligowski
Hi, On Thursday 30 of October 2008 16:11:07 you wrote: > On Thu, 30 Oct 2008 09:50:57 -0500 > > Wow! That is so badly written. Both those statements could easily be > read the opposite by someone reading the docs. Granted the latter is > better and it is correct but it could be clearer the the

"xxx.has_key(a)" vs "a in xxx"

2008-10-30 Thread Łukasz Ligowski
Hi, There is small inconsistency (or I don't understand it right) between python 2.5 docs and python 2.6 docs. 2.5 docs say that: "a.has_key(k) Equivalent to k in a, use that form in new code" 2.6 docs say that: "dict.has_key(key) is equivalent to key in d, but deprecated." which is true?

Iterating across a filtered list

2007-03-13 Thread Łukasz Ligowski
Hi, On Tuesday 13 of March 2007 22:16:32 Arnaud Delobelle wrote: > for x in L: > if g(x): > do stuff with f(x) for x in itertools.ifilterfalse(g, L): do stuff Maybe this would be even better? L -- http://mail.python.org/mailman/listinfo/python-list