Если запустить 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
Putting feelings into words can help your brain process them. Saying “I feel angry,” “I feel hungry,” or “I feel love” lowers activity in the amygdala, which reacts strongly to emotions. At the same time, the right ventrolateral prefrontal cortex becomes more active. These brain areas work together, helping the brain manage all types of feelings more clearly.
🧠🗣️💭
[Read more]
@googlefactss
#BrainFacts#Emotions#AffectLabeling#Neuroscience#MentalHealth
Scientists studied how well people can judge personality traits such as extraversion, intelligence, and empathy. They used short videos, muted videos, and photos to see how much information helps. Participants were also tested on their ability to recognize emotions. The results showed that people who are better at recognizing emotions are also better at judging personality accurately. In this study, women were generally more accurate than men.
🧠👀📹
[Read more]
@googlefactss
#PsychologyFacts#Personality#EmotionRecognition#SocialScience#BrainFacts