Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #88167
| From | Marko Rauhamaa <marko@pacujo.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: asyncio |
| Date | 2015-03-27 17:52 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <87fv8ql9p7.fsf@elektro.pacujo.net> (permalink) |
| References | (1 earlier) <87d23un7k2.fsf@elektro.pacujo.net> <b1431003-3cc6-4672-83b8-f82c4677d4b4@googlegroups.com> <877fu2mx7x.fsf@elektro.pacujo.net> <mailman.260.1427465798.10327.python-list@python.org> <87k2y2la1s.fsf@elektro.pacujo.net> |
Marko Rauhamaa <marko@pacujo.net>: > Ian Kelly <ian.g.kelly@gmail.com>: > >> Actually I think this explains it. In the OP's while loop, he updates >> his task list with the line: >> >> tasks = asyncio.Task.all_tasks(loop) >> >> This creates a strong reference to each of the returned tasks. > > Good catch! And demonstrates somewhat of a pitfall with weak references (which I have never used). Weak references are not as weak as they are thought to be. Marko
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
asyncio Łukasz Ligowski <orangewarrior@gmail.com> - 2015-03-27 01:33 -0700
Re: asyncio Marko Rauhamaa <marko@pacujo.net> - 2015-03-27 10:55 +0200
Re: asyncio orangewarrior@gmail.com - 2015-03-27 02:32 -0700
Re: asyncio Marko Rauhamaa <marko@pacujo.net> - 2015-03-27 14:38 +0200
Re: asyncio Ian Kelly <ian.g.kelly@gmail.com> - 2015-03-27 08:15 -0600
Re: asyncio Marko Rauhamaa <marko@pacujo.net> - 2015-03-27 17:44 +0200
Re: asyncio Marko Rauhamaa <marko@pacujo.net> - 2015-03-27 17:52 +0200
Re: asyncio orangewarrior@gmail.com - 2015-03-27 16:27 -0700
csiph-web