@social_justice_watch · Post #17111 · 10.09.2022 г., 04:23
Wow, this is the most perfect description of this problem I've come across. #ActuallyAutisticsource
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #402 · 22 дек.
Отдельно разберём TaskGroup, который пришел на замену gather в Python 3.11. Ключевые отличия ▫️create_task() возвращает объект asyncio.Task, у которого есть соответствюущие методы управления. То есть у нас больше контроля ▫️это контекстный менеджер, который гарантирует что все таски будут остановлены по выходу из контекста ▫️ошибка автоматически отменяет незавершенные задачи, ▫️except* передает нам ExceptionGroup, в котором каждую ошибку можно обработать отдельно import asyncio import random async def do_it() -> str: if random.random() < 0.1: raise ValueError('Oops') delay = random.uniform(0.5, 1.5) await asyncio.sleep(delay) return delay async def main(): try: async with asyncio.TaskGroup() as tg: for _ in range(10): tasks.append(tg.create_task(do_it())) for t in tasks: print(t.result()) except *ValueError as e: for err in e.exceptions: print(err) asyncio.run(main()) Рекомендую изучить страницу Coroutines and Tasks из документации, где представлено больше интересных примеров и механизмов - таймауты - отмена задач - создание задач из другого потока #async
Hashtags
Пребарај: #actuallyautistic
@social_justice_watch · Post #17111 · 10.09.2022 г., 04:23
Wow, this is the most perfect description of this problem I've come across. #ActuallyAutisticsource
Hashtags
@random_knowledge_dushu · Post #2765 · 12.01.2022 г., 13:27
【如何支持自闭成人】 1. 请破除对自闭者的刻板定见。每个自闭者都是不同的。 2. 对于自闭儿童的相关支持应延续到自闭成人。 3. 请自主学习和自闭相关的知识,建议从搜索 #actuallyautistic 开始。请让我们发声,而不是替我们发声。 4. 请理解,自闭不是病,自闭不能治好,也不需要治好。 5. 请尊重我们,请尊重我们的劳动。 6. 请理解,有些时候我们会隐藏自己的自闭特征。这并不代表我们变成非自闭者了。 7. 请倾听我们的需求,请认真对待我们的需求。 8. 请不要把我们当小孩。当我们遇到困难时,请耐心对待我们。 source
Hashtags
@social_justice_watch · Post #17881 · 09.02.2023 г., 17:47
Sorry for what, exactly? 👀#Autism#autistic#ActuallyAutistic#AutismAcceptance#AutismAcceptancesource
@social_justice_watch · Post #17904 · 09.02.2023 г., 18:42
Betcha it would improve accessibility AND accuracy. Just sayin'. #Autism#autistic#ActuallyAutistic#autistictwittersource
@social_justice_watch · Post #18048 · 28.04.2023 г., 14:30
Gets me going every time. #Autism#autistic#ActuallyAutistic#pathologicaldemandavoidancesource
@social_justice_watch · Post #18054 · 02.05.2023 г., 19:17
It’s only a real choice if it’s a fully informed one. Identity First Language = Autistic person, am/is Autistic Person First Language = person with Autism, have/has Autism #autism#autistic#ActuallyAutistic#Autisticmemessource
@social_justice_watch · Post #17919 · 14.02.2023 г., 16:55
Maybe you’re not doing it wrong, you just haven’t found someone who gets you yet. ❤️ #Autism#autistic#ActuallyAutistic#autistichumorsource
@social_justice_watch · Post #17905 · 09.02.2023 г., 18:44
And this is one of the many reasons why self-identification is a thing. (Applicable to ADHDers as well.) #Autism#autistic#ActuallyAutistic#ADHD#AuDHDsource
@social_justice_watch · Post #18016 · 05.04.2023 г., 18:45
You can’t win, so why give them any of your f@cks? 😉 #autism#Autistic#ActuallyAutistic#AutismAcceptance#AutismAwarenesssource
@social_justice_watch · Post #18035 · 18.04.2023 г., 22:21
Actual footage. #pathologicaldemandavoidance#pervasivedriveforautonomy#autistic#ActuallyAutisticsource
@social_justice_watch · Post #18119 · 29.06.2023 г., 04:39
For some reason, even people who understand the importance of representation for other groups can struggle to apply the same logic to Autistic (and otherwise disabled) people. <cough cough #ableism> #autistic#ActuallyAutistic#nothingaboutuswithoutussource
@social_justice_watch · Post #18060 · 09.05.2023 г., 21:39
If your first instinct is to dismiss this on the grounds of “but that would be really messed up,” you’re about halfway to the point. Keep going. #Autism#autistic#ActuallyAutistic#AutismAcceptance#appliedbehavioranalysissource