Если запустить 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
🤯 Increíble. Freddie Freeman termina el Juego 3 de la Serie Mundial de 6 HORAS y 39 MINUTOS con un jonrón de oro, repitiendo sus heroicas jugadas decisivas de la serie del '24.
💥 "¡Freddie, conoce a Freddie!" — Bill Shaikin del LA Times
Y fue tan largo que al principio no me molesté en verificar los hechos con la gente en X que escribió que fue el juego más largo de la Serie Mundial (🥲), distinción que aún pertenece al Juego 3 de la Serie Mundial de 2018, que duró 18 entradas y 7 horas con 20 minutos.
#️⃣#PlayOffs25#Freeman
🗞 | t.me/MLB_Daily
🔵 En sus últimos 10 juegos de la Serie Mundial, Freddie Freeman ha conectado siete jonrones y ha impulsado 17 carreras.
🗽 El único otro jugador en la historia de la MLB que ha alcanzado esas cifras en un período de 10 juegos en la Serie Mundial es Lou Gehrig.
📰 Vía Opta STATS
#️⃣#Freeman#Stats#PlayOffs25
🗞 | t.me/MLB_Daily
Trending Apps: Giveaway Results Announced!
#Elephant#Freeman
Trending Apps has announced the winners of the Elephant x Mr. Freeman giveaway. All 100 participants who fulfilled the requirements will receive whitelists, and winners are encouraged to activate @dmf0_bot to receive minting instructions. Thank you to everyone who participated or showed interest!
Source: link
@tonlines
🔵❌🇨🇦 Freddie Freeman ya no jugará en el Clásico Mundial de Béisbol de 2026 debido a razones personales, según Shi Davidi.
#️⃣#Freeman#TeamCanadá#WBC26
🗞 | t.me/MLB_Daily