Udemyintermediatezh

Python 3 Asynchronous Programming异步编程简单入门

Learn Python 3 asynchronous programming! Master core concepts & underlying principles for efficient, concurrent code. Get started today!

4.6(169)
7,612students
36m
Peng Xiao
Peng XiaoSenior Cloud DevOps Engineer 麦兜搞IT

Course Content

Python 3 Asynchronous Programming异步编程简单入门 is an intermediate-level Udemy course taught by Peng Xiao. It runs 36m and is taught in Chinese. Learners rate it 4.6 out of 5 from 169 reviews, with 7,612 students enrolled. It is free to enroll, last updated March 2019.

Python's performance has historically been a concern due to the Global Interpreter Lock (GIL), which limits true multi-core utilization. However, in I/O-bound network programming, asynchronous processing offers a significant performance boost – often achieving hundreds or thousands of times greater efficiency compared to synchronous approaches. This effectively addresses Python's performance limitations. Modern frameworks like Japronto, a cutting-edge microservices framework, demonstrate this power, achieving millions of requests per second (RPS).

Python's strength also lies in its extensive and readily available library ecosystem. asyncio, introduced in Python 3.4 and enhanced with async/await in Python 3.5, is a key component for leveraging asynchronous programming.

Understanding the evolution of Python's asynchronous capabilities is crucial. The following Python Enhancement Proposals (PEPs) detail this journey:

  • PEP 255 — Simple Generators: Introduced the foundational concept of generators.
  • PEP 342 — Coroutines via Enhanced Generators: Added the send() method to generators, enabling data transmission and making coroutines practical.
  • PEP 380 — Syntax for Delegating to a Subgenerator: Introduced the yield from syntax, simplifying the process of calling sub-generators.
  • PEP 492 — Coroutines with async and await syntax: Distinguished coroutines from generators, improving code clarity and reducing potential errors.
  • PEP 525 — Asynchronous Generators: Simplified the creation of asynchronous data producers.

This course explores the development of Python generators and coroutines through these PEPs. We begin with the fundamental yield keyword, then delve into the underlying mechanisms of coroutines and asynchronous programming. Finally, we'll cover the basics of asyncio syntax, providing a comprehensive understanding of how to effectively utilize asynchronous techniques in Python. You'll gain practical skills to build high-performance, scalable network applications.

$ whoami — the devs behind tutorialsearch.io

Need a web app built? Hire the team behind TutorialSearch.io

We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.