Advanced Exception Handling in Python

  Рет қаралды 69,690

NeuralNine

NeuralNine

Күн бұрын

Пікірлер: 57
@dagpag1
@dagpag1 Жыл бұрын
This should not be labeled as advanced exception handling because it is missing topics like exxeption chaining, traceback, exception hook, signal handling etc
@hadialhassan5078
@hadialhassan5078 8 ай бұрын
Would you recommend any resources for those
@lgf-sq9yf
@lgf-sq9yf 6 ай бұрын
frfr
@IrfaImran
@IrfaImran 4 ай бұрын
@@hadialhassan5078 python distilled is a good book and have these topics you can download it online
@AndySiisiEdwenGaisie
@AndySiisiEdwenGaisie 23 күн бұрын
Frfuri
@NiceChange
@NiceChange Жыл бұрын
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.
@leftblank5315
@leftblank5315 Жыл бұрын
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.
@gramioerie_xi133
@gramioerie_xi133 Жыл бұрын
Thank you!
@the_huge_knight
@the_huge_knight Жыл бұрын
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.
@no_______one
@no_______one Жыл бұрын
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 📈
@Alexander-ms2ct
@Alexander-ms2ct Жыл бұрын
Keep doing what you are doing. You aren’t popular. But people care and watch. You are doing good
@DanieldeWinnaar
@DanieldeWinnaar 3 ай бұрын
epic stuff, thanks man
@Earth.real47
@Earth.real47 3 ай бұрын
epic man! you explained really well.
@harrycrab8725
@harrycrab8725 Жыл бұрын
Great video. I’m interested in more advanced topics like implementing traceback, if/when to subclass Exception, and custom errors.
@Raiden_Amani
@Raiden_Amani Жыл бұрын
Thank you so much. You are honestly a very useful and coherent source for beginners, professionals, and all in-between 👍🏾.
@asapnino3625
@asapnino3625 9 ай бұрын
thanks for this, was struggling with this but i "finally" do understand it.
@beliakovdev8059
@beliakovdev8059 Жыл бұрын
Glad to watch concise and at the same time such an informative video.💥
@rhambosnax864
@rhambosnax864 Жыл бұрын
Thank you very much. I was really looking for this and you just uploaded it
@arunbalakrishnan8978
@arunbalakrishnan8978 Ай бұрын
Great, thanks for the knowledge....
@numberformat
@numberformat 5 ай бұрын
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.
@efox29
@efox29 Жыл бұрын
Every video is a banger.
@Schrom
@Schrom Жыл бұрын
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.
@Mike-vj8do
@Mike-vj8do Жыл бұрын
this guy is great, thank you for the video
@aswinmathew2472
@aswinmathew2472 Жыл бұрын
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?
@imrealgigachad
@imrealgigachad Жыл бұрын
Can you make a video about pynecone ?
@AJXD2
@AJXD2 Жыл бұрын
Dad is that you
@kashifrana6798
@kashifrana6798 8 ай бұрын
What continue does in exception handling? Pass means ignore but what continue does?
@redspade2303
@redspade2303 8 ай бұрын
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) ?
@ilyassgridech7095
@ilyassgridech7095 Ай бұрын
thank you this video was too helpfull
@SiggeQwerty
@SiggeQwerty 7 ай бұрын
Nice demo. Don't really need "as e" unless you want to use e. It suffices to use except :
@EbenHodzi
@EbenHodzi Жыл бұрын
Good work bro
@cetilly
@cetilly 3 ай бұрын
NOT advanced topic. Completely misleading title. This was a beginner introduction to exception handling.
@iankamandew9777
@iankamandew9777 Жыл бұрын
Thanks alot man!
@Brennmeister
@Brennmeister Жыл бұрын
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.
@SP-db6sh
@SP-db6sh Жыл бұрын
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...
@Brennmeister
@Brennmeister Жыл бұрын
@@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
@kamelboudaoud-qh7od
@kamelboudaoud-qh7od Жыл бұрын
thank you for all this and i want you make a video about qiskit
@rfatefehelvacoglu335
@rfatefehelvacoglu335 Жыл бұрын
i watched this from many channels none of them included what finally does
@paulthomas1052
@paulthomas1052 Жыл бұрын
Thanks - very useful !
@mecheng84
@mecheng84 Жыл бұрын
whats the difference between else and finally block ? they kind of do the same thing.
@Harry830
@Harry830 Жыл бұрын
else gets executed when there is no error whereas finally gets executed no matter error or not
@seanshimon
@seanshimon 9 ай бұрын
When did Michael Mando start coding ? 🤣 Now really, thank you for great lesson.
@vihanvalizade1088
@vihanvalizade1088 Жыл бұрын
that was perfect thanks
@karen-7057
@karen-7057 9 ай бұрын
i wouldnt call this "Advanced". was expecting more.
@amurara3012
@amurara3012 Жыл бұрын
tks man, u are great
@martinstrnad3243
@martinstrnad3243 Жыл бұрын
I think it's wrong for the exception handling video to show printing errors to stdout instead of stderr.
@knolljo
@knolljo Жыл бұрын
This is rather basic exception handling
@struggle375
@struggle375 Жыл бұрын
Thanks
@YoungTalent777
@YoungTalent777 Жыл бұрын
I learnt something
@NgoanakadiMahoma
@NgoanakadiMahoma Жыл бұрын
😍😍😍
@philtoa334
@philtoa334 Жыл бұрын
Thx_.
@eseajidekpu7536
@eseajidekpu7536 Жыл бұрын
HE NEEDS TO LEARN HOW TO EXPLAIN MORE THOROUGHLY
@cappy2112
@cappy2112 9 ай бұрын
this is basic exception handling, nothing advanced at all
@ed223-p5g
@ed223-p5g Жыл бұрын
is this what you call advanced? 🤣
@ChampikaNirosh
@ChampikaNirosh 4 ай бұрын
this is ultra basics of exception handling.. please rename your video
@kakarot5832
@kakarot5832 5 ай бұрын
This was an Awesome explanation thanks 🫡
@kutilkol
@kutilkol Жыл бұрын
Whack
5 Good Python Habits
17:35
Indently
Рет қаралды 696 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Python dataclasses will save you HOURS, also featuring attrs
8:50
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 823 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
Avoid These BAD Practices in Python OOP
24:42
ArjanCodes
Рет қаралды 84 М.
Exception Handling in Java Tutorial
13:20
Coding with John
Рет қаралды 439 М.
Makefiles in Python For Professional Automation
13:43
NeuralNine
Рет қаралды 46 М.
Python Threading Explained in 8 Minutes
8:39
NeuralNine
Рет қаралды 166 М.
Python Generators Explained
28:37
Tech With Tim
Рет қаралды 163 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН