Если запустить 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
🎬 Nine films. Nine stories celebrating the charm and character of Singapore’s conserved buildings.
✨ Discover how these spaces, beautifully restored, continue to serve our needs today.
📺 Watch the films and cast your vote for the People’s Choice Award by liking your favourite in the NTU-AHA Films playlist. Voting ends on 12 Dec 2025, 6pm: https://go.gov.sg/ahashortfilms
#SingaporeArchitecture#SGHeritage#BuiltHeritage
👀 Look up the next time you walk past a shophouse!
Shophouse signages are more than just names on a building, they add character to our streetscapes.
Swipe through to to see how good signage design practices help to keep the charm of our conservation areas alive! 👉
#URAMemos#ConservationSG#SGHeritage#ShophousesOfSG
Love the vibes at Holland Village? We do too 🙌
From low-rise buildings to continuous walkways and elegant signages, find out how we’re retaining the unique charm and familiar identity of the area through thoughtful planning and design.
#HollandVillage#ExploreSingapore#UrbanDesign#IdentityNode#SGHeritage