asyncio: What is the difference between tasks, futures, and coroutines?

Chris Angelico rosuav at gmail.com
Fri May 8 02:42:24 EDT 2015


On Fri, May 8, 2015 at 4:36 PM, Rustom Mody <rustompmody at gmail.com> wrote:
> On Friday, May 8, 2015 at 10:39:38 AM UTC+5:30, Chris Angelico wrote:
>> Why have the concept of a procedure?
>
> On Friday, Chris Angelico ALSO wrote:
>> With print(), you have a conceptual procedure...
>
> So which do you want to stand by?

A procedure, in Python, is simply a function which returns None.
That's all. It's not any sort of special concept. It doesn't need to
be taught. If your students are getting confused by it, stop teaching
it!

ChrisA



More information about the Python-list mailing list