Если запустить 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
Flossie is the oldest living cat in the world at 30 years old. She was born on 29 December 1995. She is a British tortoiseshell rescued as a kitten from a feral cat colony in England. She is deaf and has limited eyesight. Flossie lives in Orpington, England, with her owner Victoria Green.
🐱🎂🏆
[Read more]
@googlefactss
#Flossie#OldestCat#GuinnessWorldRecords#CatLife#RecordHolder
· · • • • •❄️• · · INSTAGRAM· · •❄️• • • • · ·
⇝•❄️• El gato es el animal más popular en Instagram ya que a día de hoy existen casi 450 millones de publicaciones con hashtags como #cat, #gato, #catlover o #catlife. Muy por detrás le sigue el perro, con una media de 340 millones de publicaciones con etiquetas como #dog, #doglover o #perrosfelices.
· · • • • • • · · · · • • • ☃️• • • · · · · • • • • • · ·