Telegram Group & Telegram Channel
اگر به هر دلیلی نیاز شد تعدادی اکسپشن رو بجای raise کردن جمع کنید و بعداً یکجا raise کنید، استفاده از یک کانتکست منیجر یک روش خیلی مفید و ساده و بهینه می‌تونه باشه!
برای نمونه توی این پست من در یک پروژه فست‌ای‌پی‌آی همچین چیزی رو لازم داشتم و نوشتم. عکس‌ها هم مثال کوچکی رو نشون میدن
چند روز توی یک کانال دیدم شخصی درمورد استفاده از دیکوریتور برای هندل کردن اکسپشن‌ها نوشته بود، ولی این روش مشکلی که داره در زمان دیباگ کردن یه مقدار دردساز میشه و سخت‌تر میشه.

https://www.linkedin.com/posts/mh-firouzjah_error-handling-using-context-manager-activity-7263610583759929344-6jvs?utm_source=share&utm_medium=member_android



tg-me.com/programming_tricks/732
Create:
Last Update:

اگر به هر دلیلی نیاز شد تعدادی اکسپشن رو بجای raise کردن جمع کنید و بعداً یکجا raise کنید، استفاده از یک کانتکست منیجر یک روش خیلی مفید و ساده و بهینه می‌تونه باشه!
برای نمونه توی این پست من در یک پروژه فست‌ای‌پی‌آی همچین چیزی رو لازم داشتم و نوشتم. عکس‌ها هم مثال کوچکی رو نشون میدن
چند روز توی یک کانال دیدم شخصی درمورد استفاده از دیکوریتور برای هندل کردن اکسپشن‌ها نوشته بود، ولی این روش مشکلی که داره در زمان دیباگ کردن یه مقدار دردساز میشه و سخت‌تر میشه.

https://www.linkedin.com/posts/mh-firouzjah_error-handling-using-context-manager-activity-7263610583759929344-6jvs?utm_source=share&utm_medium=member_android

BY ترفندهای برنامه‌نویسی




Share with your friend now:
tg-me.com/programming_tricks/732

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.

In many cases, the content resembled that of the marketplaces found on the dark web, a group of hidden websites that are popular among hackers and accessed using specific anonymising software.“We have recently been witnessing a 100 per cent-plus rise in Telegram usage by cybercriminals,” said Tal Samra, cyber threat analyst at Cyberint.The rise in nefarious activity comes as users flocked to the encrypted chat app earlier this year after changes to the privacy policy of Facebook-owned rival WhatsApp prompted many to seek out alternatives.telegram from ua


Telegram ترفندهای برنامه‌نویسی
FROM USA