@EuropeanTribalism · Post #1862 · 05.11.2025 г., 18:12
Gauntlet from the parade armor of Henry III of France, made around 1560. #artifacts @EuropeanTribalism
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #401 · 15 дек.
Функция asyncio.wait() это еще один способ вызвать множество асинхронных задач. Она работает в нескольких режимах. 1. Самый простой - ждем завершения всех задач async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(10)] done, pending = await asyncio.wait( tasks, return_when=asyncio.ALL_COMPLETED ) for task in done: try: print(task.result()) except Exception as e: print(e) Очень похоже на gather, но работает не так. ▫️возвращает не результаты, а два сета с объектами Task у которых можно забрать результат через task.result() если они в списке done ▫️не гарантирует порядок результатов так как оба объекта это set ▫️не выбрасывает исключение когда оно появляется, а сохраняет его в Task. Исключение появится когда попробуете забрать резултьтат. 2. Ждем завершения первой задачи, даже если там ошибка. async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(3)] done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_COMPLETED ) # в done может быть несколько задач! for task in done: try: print(task.result()) except Exception as e: print(f"Fail: {e}") # Оставшиеся задачи в pending, как правило, нужно отменить, иначе они будут продолжать работать for task in pending: task.cancel() В сете done будут таски которые успели завершится, причем как успешно так и нет. 3. До первой ошибки. Тоже самое, но с аргументом FIRST_EXCEPTION done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_EXCEPTION ) Функция завершается как только первая задача упадет с ошибкой. Учтите, что в любом случае done вы можете обранужить несколько задач, как с ошибками так и успешные. ↗️ Полный листинг примеров здесь #async
Hashtags
Пребарај: #artifacts
@EuropeanTribalism · Post #1862 · 05.11.2025 г., 18:12
Gauntlet from the parade armor of Henry III of France, made around 1560. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1837 · 20.05.2025 г., 15:18
On the Schöningen Double-Pointed Sticks In Schöningen, Germany, archaeologists found double-pointed sticks, crafted 200,000 years ago by early Europeans, likely Neanderthals. These slender wooden tools, possibly throwing sticks, showcase precise craftsmanship. Sharpened at both ends, they reflect sophisticated woodwork and hunting skill. Their balanced design suggests aerodynamic mastery for small prey. Preserved in sediment, these artifacts highlight Europe’s ancient ingenuity. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1592 · 30.04.2023 г., 16:14
Scythian Gold Goryt Overlay (4th century BC). It was found in Chertomlyk Barrow near Nikopol, Dnieper Area, Russia. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1583 · 25.04.2023 г., 17:34
Altar dedicated to the divine twins Mars and Venus. Marble, Roman artwork of the end of the reign of Trajan (98-117 AD), later re-used under the Hadrianic era (117-132 AD) as a base for a statue of Silvan. From the portico of the Piazzale dei Corporazioni in Ostia Antica. Shown in museum of Palazzo Massimo alle Terme, Rome, Italy #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1582 · 25.04.2023 г., 05:33
A 5th Century BC; Scythian gold ritual vessel with relief images of griffins, lions, horses and deer, from the Bratolyubivka Burial Mound, Kherson Region, Ukraine. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1567 · 02.04.2023 г., 07:51
Figure of Swastika on a Corinthian Silver Coin (550–500 BC) National Archaeological Museum, Athens #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1551 · 09.03.2023 г., 07:47
On swastikas (18) In 2020 scientists discovered a trove in Denmark, which contained around one kilogram of gold artifacts. Among these items there was a disc depicting the Norse god Odin. The interesting thing is, that this disc can be dated to the 5th century A.D., and is thus the oldest trace of Odin worship which was ever found. The runic inscription on the disc reads "He is Odin's man". Interestingly the swastika is clearly depicted next to Odins head in the center of the disc. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1521 · 03.02.2023 г., 13:39
Parade armor and tack made for King Erik XIV. of Sweden, around 1562 A.D. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1517 · 30.01.2023 г., 10:37
Mycenaean daggers, dating back to roughly 1600 B.C. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1512 · 23.01.2023 г., 17:27
Venus of Laussel, c. 23-25,000 years old, found in Marquay, Dordogne, France. Low relief on limestone block, height 18⅛ " Museum of Aquitaine, Bordeaux, France. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1502 · 10.01.2023 г., 07:53
The back of an ancient Greek mirror (2nd-1st Century BC) depicting the Goddess Aphrodite preparing to hit Eros with a sandal as punishment for breaking a vase. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1450 · 03.11.2022 г., 16:10
These Roman drinking cups were found in Denmark and date back to the 2nd to 3rd century B.C. #artifacts @EuropeanTribalism
Hashtags