Message217008
> How much time did you waste debugging this?
Not much: less than 5 minutes. While I *probably* won't make this mistake again (though I'm not going to make any promises on that front), it would be nice to prevent other people from doing so.
More info: I got to the issue by randomly pasting examples from the asyncio docs, one of which had a `.close` call in, without taking the time to read and understand those docs properly first - I was keen to get to the coroutine part of it and didn't want to spend time on the event loop details. Without having thought about it, I wasn't expecting the result of `get_event_loop` to be a singleton; once I figured that bit out it was clear what was going on.
So yes, stupidity on my part. I'd like to bet that I won't be the only person who runs into this, though. |
|
Date |
User |
Action |
Args |
2014-04-22 14:44:53 | mark.dickinson | set | recipients:
+ mark.dickinson, gvanrossum |
2014-04-22 14:44:53 | mark.dickinson | set | messageid: <1398177893.69.0.431047714879.issue21326@psf.upfronthosting.co.za> |
2014-04-22 14:44:53 | mark.dickinson | link | issue21326 messages |
2014-04-22 14:44:53 | mark.dickinson | create | |
|