Comments on: async_loop.py http://laurentszyster.be/blog/async_loop/ Python on Peers Sat, 04 Feb 2012 05:42:33 +0000 http://wordpress.org/?v=1.5.1.3 by: Laurent Szyster http://laurentszyster.be/blog/async_loop/#comment-2173 Mon, 07 Aug 2006 08:58:55 +0000 http://laurentszyster.be/blog/async_loop/#comment-2173 Bug fixed, checked in revision 496. Thanks a lot Mr Codeplayer! Bug fixed, checked in revision 496.

Thanks a lot Mr Codeplayer!

]]>
by: huangyi http://laurentszyster.be/blog/async_loop/#comment-2172 Mon, 07 Aug 2006 07:04:11 +0000 http://laurentszyster.be/blog/async_loop/#comment-2172 maybe it should be: more = len(concurrent) - limit if more>0: concurrent = concurrent[:limit] by the way , the code is in async_loop.py line 57 maybe it should be:

more = len(concurrent) - limit
if more>0:
concurrent = concurrent[:limit]

by the way , the code is in async_loop.py line 57

]]>
by: huangyi http://laurentszyster.be/blog/async_loop/#comment-2171 Mon, 07 Aug 2006 07:00:18 +0000 http://laurentszyster.be/blog/async_loop/#comment-2171 I found some strange code in async_loop.py: concurrent = map.items () rest = limit - len (concurrent) if rest > 0: concurrent = concurrent[:limit] I think it's useless, isn't it? since rest>0 i.e. limit>len (concurrent) , then concurrent[:limit] == concurrent I found some strange code in async_loop.py:

concurrent = map.items ()
rest = limit - len (concurrent)
if rest > 0:
concurrent = concurrent[:limit]

I think it’s useless, isn’t it?
since rest>0 i.e. limit>len (concurrent) , then concurrent[:limit] == concurrent

]]>