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: |

Telegram and Signal Havens for Right-Wing Extremists

Since the violent storming of Capitol Hill and subsequent ban of former U.S. President Donald Trump from Facebook and Twitter, the removal of Parler from Amazon’s servers, and the de-platforming of incendiary right-wing content, messaging services Telegram and Signal have seen a deluge of new users. In January alone, Telegram reported 90 million new accounts. Its founder, Pavel Durov, described this as “the largest digital migration in human history.” Signal reportedly doubled its user base to 40 million people and became the most downloaded app in 70 countries. The two services rely on encryption to protect the privacy of user communication, which has made them popular with protesters seeking to conceal their identities against repressive governments in places like Belarus, Hong Kong, and Iran. But the same encryption technology has also made them a favored communication tool for criminals and terrorist groups, including al Qaeda and the Islamic State.

telegram from kr


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