Introducing Python, Modern Computing in Simple Packages, Second edition, Lubanovic B., 2020

Introducing Python, Modern Computing in Simple Packages, Second edition, Lubanovic B., 2020.

   As the title promises, this book will introduce you to one of the world’s most popular programming languages: Python. It’s aimed at beginning programmers as well as more experienced programmers who want to add Python to the languages they already know.
In most cases, it’s easier to learn a computer language than a human language. There’s less ambiguity and fewer exceptions to keep in your head. Python is one of the most consistent and clear computer languages. It balances ease of learning, ease of use, and expressive power.

Introducing Python, Modern Computing in Simple Packages, Second edition, Lubanovic B., 2020


Green Threads and gevent.
As you’ve seen, developers traditionally avoid slow spots in programs by running them in separate threads or processes. The Apache web server is an example of this design.

One alternative is event-based programming. An event-based program runs a central event loop, doles out any tasks, and repeats the loop. The NGINX web server follows this design, and is generally faster than Apache.

The gevent library is event-based and accomplishes a neat trick: you write normal imperative code, and it magically converts pieces to coroutines. These are like generators that can communicate with one another and keep track of where they are. gevent modifies many of Python’s standard objects such as socket to use its mechanism instead of blocking. This does not work with Python add-in code that was written in C, as some database drivers are.



Бесплатно скачать электронную книгу в удобном формате, смотреть и читать:
Скачать книгу Introducing Python, Modern Computing in Simple Packages, Second edition, Lubanovic B., 2020 - fileskachat.com, быстрое и бесплатное скачивание.

Скачать pdf
Ниже можно купить эту книгу по лучшей цене со скидкой с доставкой по всей России.Купить эту книгу



Скачать - pdf - Яндекс.Диск.
Дата публикации:





Теги: :: ::


 


 

Книги, учебники, обучение по разделам




Не нашёл? Найди:





2024-11-21 23:27:22