[Tutor] What exactly does "await" do? (David)(Mats Wichmann)(Alan Gauld)
David
bouncingcats at gmail.com
Sat Feb 18 06:02:26 EST 2023
On Sat, 18 Feb 2023 at 20:08, Alphonsus <phonokoye at gmail.com> wrote:
Hi Alphonsus,
You wrote:
> The low level stuff involves the asyncio event loop, Future objects and
> some concept called a Transport. All of these may not be used frequently
> but are important for greater control over an asyncio program. These
> parts of asyncio are probably the most tricky parts. It is important to
> understand these parts though, so as to make better programming
> decisions. I also do not understand the low level approach to IO in
> python. Can I get references that teach these?
I will answer regarding "low level stuff":
I am writing here as just one individual person who sometimes asks or
answers questions here. In my opinion, your questions have now moved on to
advanced topics. It is possible that other people here might answer them,
but it is my understanding that discussing advanced topics is not really
the purpose of this list.
Everything I know about asyncio has come from the references that I shared
with you in a previous message. So, I myself cannot give you any more
information.
For myself, when I needed to use asyncio, I found those references and read
them, and then I used that knowledge to write some code using coroutines.
That code runs on an STM32 microcontroller and calls the MicroPython
implementation of asyncio. It handles the realtime event loop, which
manages coroutines for the user interface, A/D conversions, data output.
That code works successfully and it does everything that I need.
So, my personal experience has been that I have been able to write useful
asyncio code in Python without knowing anything about the advanced aspects
of it. Have you tried to write any code using asyncio?
May I also ask, why do you think that you need to know the answers to the
questions that you are asking?
Are you writing code? What is the project?
Are you writing an essay? Who will read it?
Are you applying for a job?
Are you creating an online course?
Are you studying a course?
As I already said, someone else might answer your question in a different
way, because that is how things happen here. We all have different approaches
to answering questions.
More information about the Tutor
mailing list