Если запустить 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
Who Is Mr. Roman? A Mysterious Encounter... #shorts#noir#mystery#thriller#drama#suspense#MrRoman#shortfilm#detective#enigmatic#cinematic#dialogue
https://pdmovies.substack.com/p/the-chase-1946-american-film-noir
Yakuza Laundering via Pokémon Cards
Japanese yakuza are reportedly laundering money using Pokémon cards, exploiting their high liquidity and easy transport. Some cards can fetch thousands of dollars, enabling the mafia to purchase sets with illicit funds, smuggle them abroad, and sell to collectors for substantial gains. They employ a scheme to locate rare cards, using methods like weighing boosters and employing metal detectors.
#Yakuza#MoneyLaundering#PokémonCards#IllicitTrade#Collectibles#Japan#CriminalScheme#RareCards#HighValue#Smuggling#BlackMarket#Money#Gaming#Investment#Detective#Counterfeit