Python advanced programming and asynchronous IO concurrent programming

Source: Internet
Author: User
Tags generator

The 1th chapter of the course Introduction
Describes how to configure the system development environment and how to join the GitHub private repository for the latest source code.
1-1 Guided Learning
1-2 Development Environment Configuration
1-3 How to access resources

2nd. All objects in Python
This chapter begins with a comparison of static and dynamic languages, and then introduces some of the most important concepts in Python,-object, type, and class, to show how Python does everything, and then enumerates common objects in Python.
2-1 all objects in Python
2-2 the relationship between type, object, and class
2-3 built-in types in Python
2-4 Summary of this chapter

3rd Chapter Magic function
This chapter introduces the cornerstone of the Python language introduction syntax-the Magic function, which shows an overview of Python by demonstrating the effect of the magic function on Python and the final overall rendering of the magic function in Python.
3-1 What is a magic function
3-2 python data model's impact on Python
3-3 python magic functions at a glance
The particularity of 3-4 len function
3-5 Summary of this chapter

The 4th chapter in-depth classes and objects
This chapter is the advanced knowledge of Python object-oriented, and through this chapter we will learn about the Python duck type and the effect of duck type on Python, then explain the application of abstract base class in Python, the MRO property lookup algorithm of Python and super function, class variable and object variable As well as the data encapsulation, this chapter will explain the object of the introspection mechanism can let you have a further understanding of the object inside, and finally the context Management protocol ...
4-1 Duck Type and polymorphism
4-2 abstract base class (ABC module)-1
4-3 abstract base class (ABC module)-2
4-4 the difference between isinstance and type
4-5 class variables and instance variables
4-6 the lookup order of class and instance properties-mro lookup
4-7-Class methods, static methods, and instance methods
4-8 data encapsulation and private properties
The introspection mechanism of 4-9 python objects
Is 4-10 super really calling the parent class?
4-11 mixin Inheritance Case-django rest Framework
4-12 with statements in Python
4-13 Contextlib Simplified Context Manager
4-14 Summary of this chapter

5th Chapter Custom Sequence Classes
This chapter explains the Python sequence protocol and further explains the type of sequence in Python and the Magic function in the sequence protocol, then implements its own sequence of slices, and in this chapter we also touch Bisect and list derivations, generator expressions and dictionary derivations, etc. After studying this chapter, you will know how to define a class that can be used as a list and understand the core of Queryset in Django ...
5-1 sequence classification in Python
5-2 The ABC inheritance relationship of sequence types in Python
Extend method differences in 5-3 list
5-4 implementing objects that can be sliced
5-5 bisect maintaining sorted sequences
5-6 when should we not use the list?
5-7 list derivation, generator expression, dictionary derivation
5-8 Summary of this chapter

The 6th Chapter delves into Python's set and dict
Because of the high performance of Dict, Dict is used extensively within Python. In this chapter we will first demonstrate the performance differences between Dict and list, as well as the principles behind dict high performance, we will also be exposed to hash lists and hash types, and finally we will know the difference between set and Frozenset. ...
ABC Inheritance relationship of 6-1 dict
Common methods of 6-2 Dict
Subclasses of 6-3 Dict
6-4 Set and Frozenset
The implementation principle of 6-5 dict and set
6-6 Summary of this chapter

7th. Object reference, variability, and garbage collection
This chapter is part of the partial theory, but it is the most important chapter in our understanding of Pytho N and the various hidden bugs, and the object references, variability, and garbage collection in this chapter allow us to further deepen the nature of Python's variables. This section will allow us to avoid all kinds of pits as well as error-prone experiences as we encode. ...
What are the variables in 7-1 python
7-2 = = and is Difference
7-3 del Statements and garbage collection
7-4 a classic parameter error
7-5 Summary of this chapter

8th chapter Meta-Class programming
The meta-class will be frequently asked in the interview of Python senior engineer, the meta-class as a high-level feature in Python, skilled use of the meta-class can not only let us write more elegant and controllable better code can further deepen our understanding of Python, this chapter we will understand more python Advanced object-oriented features such as property and attribute descriptors, __getattr__ and __getattribute__, and so on, allow us to ...
8-1 Property Dynamic Properties
8-2 __getattr__, __getattribute__ magic function
8-3 property Descriptors and property lookup procedures
The difference between 8-4 __new__ and __init__
8-5 Custom meta-classes
8-6 implementation of ORM-1 by meta-class
8-7 implementation of Orm-2 by meta-class
8-8 Summary of this chapter

9th Iterator and generator
A deep understanding of the generator is the basis for understanding the process, iterators and generators as Python's incomprehensible features, many people are ambiguous about their differences and use, this chapter we will fully understand the iterator protocol and the relationship between the generator and iterators, we will focus on the principle of the generator, Let's be more aware of when we should use the generator, and in this section I'll use a few examples to deepen your understanding and usage of generators. ...
9-1 Iteration protocol in Python
9-2 what is an iterator and an iterative object
9-3 use of generator functions
9-4 How Python implements the generator's
The application of 9-5 generator in userlist
9-6 how the generator reads large files
9-7 Summary of this chapter

10th Python Socket Programming
This chapter I will start from the HTTP, socket, TCP protocol, through the socket way to achieve the client and server to understand the core of the chat software, to understand the Web programming, we must know the socket programming, this chapter we will be multi-threaded + socket The way to implement support for the concurrent service side, and finally through the socket to simulate the HTTP request to achieve the subsequent asynchronous IO to lay the concurrency of the base ...
10-1 understand the concepts of HTTP, Socket, TCP
10-2 socket and server for communication
10-3 socket for chat and multi-user connectivity
10-4 Socket Impersonation HTTP request
10-5 Summary of this chapter

11th multi-threaded, multi-process, and thread pool programming
Multi-threaded, multi-process programming has always been a high-frequency issue in the interview, and this chapter will start with the GIL on multithreading and multi-process scenarios, followed by a detailed introduction to multithreaded encoding, inter-thread communication, and thread synchronization-lock\ Rlock\condition, through the Condition of the source code analysis to deepen everyone's understanding of the condition variables, and then through the thread pool threadpoolexecutor use and source analysis to deepen our ...
GIL in 11-1 python
11-2 multi-threaded programming-Threading
11-3 Inter-thread communication-shared variables and Queue
11-4 thread Synchronization-lock, Rlock
11-5 thread Synchronization-Cond Ition usage and source analysis
11-6 thread synchronization-Semaphore usage and source code Analysis
11-7 threadpoolexecutor thread pool
11-8 threadpoolexecutor source Analysis
11-9 Multithreading and multi-process comparisons
11-10 multiprocessing multi-process programming
11-11 interprocess communication-Queue, Pipe,manager
11-12 Summary of this chapter

12th and Asynchronous IO
This chapter is a transitional chapter and the most important chapter in transition from generator to co-progression, and this chapter will start from the concepts of blocking and non-blocking to the lack of multi-threaded and multi-process programming in concurrent programming, IO multiplexing, and then we will pass the event loop + Callback to complete the high-concurrency request, then we will explain the pain of the callback and the generator in the advanced stage of the send, close and yield from the function, and finally through this ...
12-1 Concurrent, parallel, synchronous, asynchronous, blocking, non-blocking
12-2 IO multiplexing (SELECT, poll, and Epoll)
12-3 select+ callback + event loop get html-1
12-4 select+ callback + Event loop gets Html-2
12-5 callback pain
12-6 What is the
12-7 Generator Advanced-send, close and throw method
12-8 Generator Advanced-yield from-1
12-9 Generator Advanced-yield from-2
12-10 async and await
12-11 generator implementation coprocessor
12-12 Chapter

13th Chapter Asyncio Concurrent Programming
As the most ambitious and promising module in Python's future, Asyncio is a must-learn module for learning Python's high-concurrency programming. With the foundation of Chapter 12, we use Asyncio directly to make concurrent programming easier to understand, starting with the basic functions of Asyncio, how to submit tasks to Asyncio, how to integrate Threadpoolexecutor and Asyncio, understand Asyncio inside is like ...
13-1 Event Loop-1
13-2 Event Loop-2
13-3 Task cancellation and sub-process invocation principle
13-4 Call_soon, Call_at, Call_later, Call_soon_threadsafe
13-5 Threadpollexecutor and Asycio complete blocking IO requests
13-6 Asyncio Analog HTTP request
13-7 Future and task
13-8 Asyncio Synchronization and communication
13-9 aiohttp for high concurrent crawlers-1
13-10 aiohttp for high concurrent crawlers-2
13-11 aiohttp for high concurrent crawlers-3
13-12 subsections of this chapter

The 14th chapter of the course summary
In this section, we will summarize the contents of the course and deepen our understanding of the knowledge points we have learned.
14-1 Course Summary

: Baidu Network Disk download

Python advanced programming and asynchronous IO concurrent programming

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.