This should not be labeled as advanced exception handling because it is missing topics like exxeption chaining, traceback, exception hook, signal handling etc
This is a great video for understanding the try/except usage in Python. Creating a good knowledge of the fundamentals is essential. Nice work! Thank you.
Also if you create a class in Python, in its methods you should (catch and) raise some exceptions (if something goes wrong) and catch them in the main function of your program.
I am truly amazed how much knowledge you have and how well you transmit it. Every video is truly appreciated, thanks a lot for saving me and thank you in advance for all people that you are going to help in the future 📈
First of all, thanks for this video :) Now my comment :D I think its a good practice to avoid these try catching if possible. For example if you already know a division by zero could happen, you can check it and if it would be the case you can throw an exception by yourself.
Coming from java background we don't have else. We just assumed that the line after the code that throws that exception would run and we would consider that the else. I just use that logic here when programming python. Seems using else would be a step backwards as it puts the code that follows in a different code block much lower on the screen.
Trying out Python, I learned you can execute functions right from the console. Is there a way to catch exceptions from functions written and executed directly in the console (not the source code) ?
I want to ask a doubt about the neuralintents package Can I put a default command like for example if the message I gave dosent match any of the patterns I have listed on the intents file do something or say something as default?
Is it possible to have something like a watchdog? That checks every 5 sek if a program is still running. And is it possible to restart a thread if an error raised an failure.
What an practical implementation of this video instantly advised by you ! Amazing.... What's your actual usecase? In that case need an decorator function which will restart this child function on awkward return value from it...
@@SP-db6sh oh ok. I will try to solve the problem with The watchdog is just something like a ping. Every second try to reach all clients. If there is noch answer stop all processes
This should not be labeled as advanced exception handling because it is missing topics like exxeption chaining, traceback, exception hook, signal handling etc
Would you recommend any resources for those
frfr
@@hadialhassan5078 python distilled is a good book and have these topics you can download it online
If you re-raise an exception, you should generally do it so: "raise from e". Internally, it sets a few flags and references the original exception.
Thank you!
This is a great video for understanding the try/except usage in Python. Creating a good knowledge of the fundamentals is essential. Nice work! Thank you.
Also if you create a class in Python, in its methods you should (catch and) raise some exceptions (if something goes wrong) and catch them in the main function of your program.
Keep doing what you are doing. You aren’t popular. But people care and watch. You are doing good
Great video. I’m interested in more advanced topics like implementing traceback, if/when to subclass Exception, and custom errors.
Thank you so much. You are honestly a very useful and coherent source for beginners, professionals, and all in-between 👍🏾.
thanks for this, was struggling with this but i "finally" do understand it.
I am truly amazed how much knowledge you have and how well you transmit it.
Every video is truly appreciated, thanks a lot for saving me and thank you in advance for all people that you are going to help in the future 📈
Every video is a banger.
epic stuff, thanks man
epic man! you explained really well.
Thank you very much. I was really looking for this and you just uploaded it
Glad to watch concise and at the same time such an informative video.💥
this guy is great, thank you for the video
First of all, thanks for this video :)
Now my comment :D
I think its a good practice to avoid these try catching if possible. For example if you already know a division by zero could happen, you can check it and if it would be the case you can throw an exception by yourself.
Coming from java background we don't have else. We just assumed that the line after the code that throws that exception would run and we would consider that the else. I just use that logic here when programming python. Seems using else would be a step backwards as it puts the code that follows in a different code block much lower on the screen.
i watched this from many channels none of them included what finally does
Nice demo.
Don't really need "as e" unless you want to use e. It suffices to use except :
Good work bro
Thanks alot man!
When did Michael Mando start coding ? 🤣
Now really, thank you for great lesson.
thank you for all this and i want you make a video about qiskit
Thanks - very useful !
that was perfect
thanks
This is rather basic exception handling
Trying out Python, I learned you can execute functions right from the console. Is there a way to catch exceptions from functions written and executed directly in the console (not the source code) ?
What continue does in exception handling? Pass means ignore but what continue does?
Can you make a video about pynecone ?
Dad is that you
tks man, u are great
i wouldnt call this "Advanced". was expecting more.
Thanks
I want to ask a doubt about the neuralintents package
Can I put a default command like for example if the message I gave dosent match any of the patterns I have listed on the intents file do something or say something as default?
I think it's wrong for the exception handling video to show printing errors to stdout instead of stderr.
whats the difference between else and finally block ? they kind of do the same thing.
else gets executed when there is no error whereas finally gets executed no matter error or not
NOT advanced topic. Completely misleading title. This was a beginner introduction to exception handling.
I learnt something
Is it possible to have something like a watchdog? That checks every 5 sek if a program is still running.
And is it possible to restart a thread if an error raised an failure.
What an practical implementation of this video instantly advised by you ! Amazing.... What's your actual usecase?
In that case need an decorator function which will restart this child function on awkward return value from it...
@@SP-db6sh oh ok. I will try to solve the problem with
The watchdog is just something like a ping. Every second try to reach all clients. If there is noch answer stop all processes
😍😍😍
Thx_.
this is basic exception handling, nothing advanced at all
is this what you call advanced? 🤣
HE NEEDS TO LEARN HOW TO EXPLAIN MORE THOROUGHLY
this is ultra basics of exception handling.. please rename your video
Whack
This was an Awesome explanation thanks 🫡