Если запустить 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
🎂10 Years of Google Chrome
#GoogleChrome turned 10 on Sunday, and according to its Twitter, we should be expecting a surprise today. Meanwhile, let's take a look at #Chrome's path to browser market domination:
2008 ⇢ 0.3%
2018 ⇢ 60%
Also, since 2012, #Google Chrome has become the world's most popular browser. Here's the list of its predecessors as the world's number one most popular browser since 1990:
1990 ⇢ WorldWideWeb
1993 ⇢ NCSA Mosaic
1995 ⇢ Netscape
1999 ⇢ Internet Explorer
2012 ⇢ Google Chrome
🚀@PerspectiveIX
💌 Join Pulse: Our Weekly Newsletter
❓ Is Chrome your default desktop browser?
Google Chrome
Google Chrome 是一款快速、安全且易于使用的网页浏览器,提供流畅的浏览体验和丰富的扩展功能。支持多平台同步,用户可以在多个设备上无缝访问书签、历史记录和设置。Chrome 还具备强大的隐私和安全保护措施,确保用户安全上网。
🔗:https://pan.quark.cn/s/80e6d21f7a1c
#GoogleChrome#网页浏览器#快速安全#多平台同步#扩展功能#隐私保护
🔔Twitter👥频道💬群组