TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #422 · 30 мар.

Если запустить REPL с модулем asyncio, то вы входите в особый асинхронный REPL. user@host:~$ python -m asyncio asyncio REPL 3.12.7 ... Use "await" directly instead of "asyncio.run()". >>> import asyncio >>> В этом режиме - создаётся и настраивается event loop - уже импортирован asyncio - работает await на верхнем уровне То есть такая команда сработает без ошибок! await asyncio.sleep(3) Удобно для тестирования асинхронных функций без создания ивентлупов и остальной обвязки. Работает в: 3.8+ #tricks#async

Резултати

Пронајдени 2 слични објави

Пребарај: #twisted

当前筛选 #twisted清除筛选
djangoproject

@djangoproject · Post #461 · 04.10.2017 г., 04:20

http://jcalderone.livejournal.com/tag/sixty%20seconds Greetings, and welcome back to "Twisted Web in 60 Seconds". In the previous entry, back at the beginning of December, I promised to cover Twisted Web's proxying capabilities. For various reasons I've decided to dump that topic and cover something else instead. So, prepare to learn about #Twisted Web's CGI capabilities! #learn

djangoproject

@djangoproject · Post #458 · 04.10.2017 г., 04:02

http://krondo.com/an-introduction-to-asynchronous-programming-and-twisted/ Twisted Introduction This multi-part series introduces #Asynchronous Programming and the Twisted networking framework. #Twisted is an event-driven networking engine written in #Python and licensed under the open source ​MIT license. Twisted runs on Python 2 and an ever growing subset also works with Python 3. #network#learn