Если запустить 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
📜 The word "rape" has a complex and shifting history. Originally, it meant “to seize by force” — as in property or land. By the 1400s, it began to take on its modern meaning of sexual violence.
Recent political attempts to create categories like "forcible rape" have been widely criticized for minimizing survivors' experiences. Language matters — especially when it comes to defining violence and consent.
[Read more for more meanings]
@googlefactss#LanguageHistory#Etymology#Rape#Consent#SocialJustice#LanguageMatters
🚀 AI TRENDS | Laura Estefania Discusses AI Agents' Potential to Coordinate Human Labor
Laura Estefania has proposed that AI agents could evolve from merely automating tasks to coordinating human labor by utilizing services that enable bots to hire individuals for physical work. According to NS3.AI, Estefania suggests that cryptocurrency could serve as the payment and coordination layer for this model. However, she emphasizes the necessity of incorporating transparency, fair compensation, accountability, and consent into the system to ensure ethical practices.
#AI#AIagents#humanlabor#automation#cryptocurrency#NS3AI#ethics#transparency#faircompensation#accountability#consent#technologytrends