TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #422 · 30 мар.

Если запустить 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

Резултати

Пронајдени 2 слични објави

Пребарај: #anger

当前筛选 #anger清除筛选
Self-Immolation

@SelfImmolation · Post #908 · 18.07.2022 г., 17:31

How to react if someone is angry with you? One time Brahmin Akkosaka got angry at Buddha, because a man from his clan had become a Bhikkhu. Akkosaka was yelling and insulting the Buddha. Buddha: “What do you think, Akkosaka? Do your friends, relatives, and guests sometimes come to visit you?” Akkosaka: "Sometimes they do, Master Gotama.” Buddha: "Do you then serve them with a variety of food and drinks?” Akkosaka: "Sometimes I do.” Buddha: “But if they don’t accept it, who do those food and drinks belong to?” Akkosaka: “In that case Master Gotama, they still belong to me.” Buddha: “In the same way, Akkosaka, when you abuse, harass, and attack me, who does not abuse, harass, and attack, I don’t accept your insults. They still belong to you, Akkosaka, they still belong to you!" - SN 7.2 Akkosaka Sutta#anger#Buddha