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 Auto-Delete Messages in Any Chat

Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature.

What is Telegram?

Telegram is a cloud-based instant messaging service that has been making rounds as a popular option for those who wish to keep their messages secure. Telegram boasts a collection of different features, but it’s best known for its ability to secure messages and media by encrypting them during transit; this prevents third-parties from snooping on messages easily. Let’s take a look at what Telegram can do and why you might want to use it.

telegram from tr


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