Если запустить 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
Канье Уэста снова выпустили из дурки, и он пришёл на стрим, где включил демку своей новой песни под названием Heil Hitler.
Вот отрывок из его трека: «Все мои ниггеры — нацисты. Хайль ниггер. Хайль Гитлер».
Также рэпер к своим автографам теперь добавляет свастику.
Других новостей мира музыки у нас для вас нет
r/#Kanye
🎤 Kanye West 🌍 has publicly apologized to a rabbi for anti-Semitic remarks. ✨
American rapper Kanye West, known under the pseudonym Ye, has publicly apologized for his anti-Semitic statements for the first time. ☝️
The musician met with Rabbi Yeshayahu Yosef Pinto in New York and explained his past antics as a struggle with bipolar disorder. 😔
He added that he wants to start the road to recovery and "return to peace and love." 💖
Rabbi Pinto, a well-known preacher and spiritual mentor, replied to the musician: "It's not his mistakes that define a person, but how he corrects them. True strength lies in the ability to learn and build bridges of love and peace." 🗯✅
At the end of the meeting, he hugged the rapper and wished him "only the best in the future." 🤗👏
Kanye West has previously made a series of anti-Semitic statements in which, among other things, he praised Hitler and spread conspiracy theories. 🚫
His contracts with Adidas, Balenciaga and other brands were terminated, and his fortune was reduced by billions of dollars. 📉
#Kanye#Antisemitism
👂More on Trump's Ear
🚀 Overview of SBTI's 28 Personality Types
PANews posted on X (formerly Twitter) about the 28 distinct personality types identified by SBTI. These include the 'Controller' who excels in task management and situation handling, and the 'ATM-er' who invests time and emotional value. The 'Dior-s' represents a self-deprecating narrative under pressure, while the 'BOSS' is goal-oriented with strong organizational skills. The 'Thanker' leans towards positive feedback and gratitude, whereas the 'Oh-No' personality anticipates risks and negative outcomes. The 'GoGo' is action-driven, and the 'Sexy' emphasizes style and attraction. The 'Lover' is emotionally invested, and the 'Mum' is nurturing and concerned. The 'Fake' wears a social mask, and the 'OJBK' is conflict-averse. The 'Malo' resonates with the working class, while the 'Joker' uses humor to mask vulnerability. The 'WOC!' is highly reactive, and the 'Thinker' is analytical. The 'Shit' is cynical but often cleans up messes, while the 'ZZZZ' strategically disconnects. The 'Poor' is resource-conscious, and the 'Monk' is restrained and detached. The 'IMSB' is self-deprecating, and the 'Solo' is independent. The 'FUCK' is direct and rebellious, while the 'Dead' feels drained. The 'IMFW' has a low self-assessment, and the 'HHHH' finds humor first. The 'Drunk' is a hidden personality, and the 'Kanye' remains mysterious.
#SBTI#PersonalityTypes#Controller#ATM#Dior#BOSS#Thanker#OhNo#GoGo#Sexy#Lover#Mum#Fake#OJBK#Malo#Joker#WOC#Thinker#Shit#ZZZZ#Poor#Monk#IMSB#Solo#FUCK#Dead#IMFW#HHHH#Drunk#Kanye