Author mark.dickinson
Recipients gvanrossum, mark.dickinson
Date 2014-04-22.14:44:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398177893.69.0.431047714879.issue21326@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2014-04-22 14:44:53mark.dickinsonsetrecipients: + mark.dickinson, gvanrossum
2014-04-22 14:44:53mark.dickinsonsetmessageid: <1398177893.69.0.431047714879.issue21326@psf.upfronthosting.co.za>
2014-04-22 14:44:53mark.dickinsonlinkissue21326 messages
2014-04-22 14:44:53mark.dickinsoncreate