Python tricks: All there is to know about Exceptions

Python tricks: All there is to know about Exceptions

Sebastiaan Mathôt

6 лет назад

18,648 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@fabulousfabio8228
@fabulousfabio8228 - 14.07.2022 16:49

I really love the rigorous way in which you explain things. Thanks

Ответить
@alphainfinitum3445
@alphainfinitum3445 - 28.11.2021 22:20

This is the one video you want to watch. This topic is particularly very confusing on Cisco Networking Academy. Watching this before heading over there is definitely a good idea. You can tell that this guy is a formidable teacher because he is able to cover all the essentials that you need to start writing and reading code in one short video. Thank you very much mate.

Ответить
@anupbaghel2055
@anupbaghel2055 - 14.06.2021 16:07

Great content, rare content

Ответить
@OrgBrent
@OrgBrent - 24.04.2021 10:51

Are you Dutch?

Ответить
@pizzaboiiiiiiiiiiiiiiiiiii1882
@pizzaboiiiiiiiiiiiiiiiiiii1882 - 10.04.2021 10:48

keep going dude, way to hawaii

Ответить
@radonspace2098
@radonspace2098 - 26.10.2020 14:56

I owe you a coffee.

Ответить
@Phantastischphil
@Phantastischphil - 08.09.2020 14:21

Thank you. I was searching for the code behind exceptions while using SOLO LEARN. Thank you for explaining that they are objects and how to construct and tailor specific instances!

Ответить
@m.preacher2829
@m.preacher2829 - 05.01.2020 03:50

very clear explanation,thanks

Ответить
@schogaia
@schogaia - 04.01.2020 23:35

What is the benefit of using try: else:?
I just put everything in the try block.
I would appreciate if someone could explain this to me.
Thank you

Ответить
@Dopeboyz789
@Dopeboyz789 - 28.07.2019 19:22

How do you use this method in a df

Ответить
@antongeorgiev1704
@antongeorgiev1704 - 04.03.2019 11:04

Very nice series, thank you!
fyi, saying there is no logic behind 0! = 1, just def, hurts my mathematician's hearth ;( </3 :D:D

Ответить
@ELHAUKEZ
@ELHAUKEZ - 18.02.2019 19:40

def riddle():
try:
return 1
finally:
return 2

Ответить
@gabrielkomanderzapata3189
@gabrielkomanderzapata3189 - 19.01.2019 12:26

Nice video many thanks

Ответить
@dhananjaykansal8097
@dhananjaykansal8097 - 21.12.2018 17:06

AWESOMEEEEE

Ответить
@vaibhavashrivastava9310
@vaibhavashrivastava9310 - 25.10.2018 06:59

"i have a data frame with columns ID and date, If date is invalid how my python program can tell me which ID indexed with invalid date"

Ответить
@adeyeyeayomide4442
@adeyeyeayomide4442 - 09.10.2018 10:17

waooh! This is concise, succinct and informative

Ответить
@boobubuo
@boobubuo - 23.09.2018 08:38

esle ???? why ??? try esle before except block (inside "try except")... lol

Ответить
@sujataroberts3025
@sujataroberts3025 - 23.07.2018 23:35

I tried to learn this from a few sources before I finally understood from watching this. Thank you!

Ответить
@bondbreaker3096
@bondbreaker3096 - 23.07.2018 14:31

more video please

Ответить
@denispmaciel
@denispmaciel - 26.04.2018 00:49

Thank you!

Ответить
@amateruss
@amateruss - 14.04.2018 08:23

WTF I thought your cam was a random picture of a dude on a beach having a vacation until I pressed the play button.

Ответить
@fuanka1724
@fuanka1724 - 21.03.2018 23:18

Thanks for making these awesome videos, you are a great teacher! :)

Ответить
@lonme278
@lonme278 - 05.03.2018 05:40

How I know python 3.6 Modules index
abc
aifc
argparse
array
ast
asynchat
asyncio
asyncore
atexit
audioop
calendar
cgitb
chunk
cmath
cmd
code
codecs
codeop
collections
colorsys
concurrent
configparser
contextlib
copy
copyreg
cProfile
crypt (Unix)
csv
ctypes
curses (Unix)
..
..
..

ETC.

Can You Explain Tricky Import This Example Class in modules it ?When And Where ?

Ответить
@FitLife6767
@FitLife6767 - 02.03.2018 22:05

Yeah this one was very useful... It seems it was made specifically to address my issue...Thank you very much!

Ответить
@maxvinella941
@maxvinella941 - 22.01.2018 17:05

very interesting! thanks

Ответить
@talmadhoun
@talmadhoun - 29.12.2017 20:45

You know your stuff and you explain it very well. You're a great teacher. Thank you!

Ответить
@juliannash890
@juliannash890 - 09.11.2017 15:53

As someone learning Python, your videos are fantastic :) Keep them coming!

Ответить
@cmdlp4178
@cmdlp4178 - 17.08.2017 17:44

You can catch SyntaxErrors when importing or running code with eval/exec.

Ответить
@AlexanderLebedev_sortafreel
@AlexanderLebedev_sortafreel - 16.08.2017 11:32

Amazingly useful video!

Ответить
@springinfialta106
@springinfialta106 - 16.08.2017 08:08

It would be helpful to have a talk describing multiple exceptions within a block. Some programmers would say that each block should just do one very specific thing and would only require one try...except. However, sometimes you are doing a few very related things such as working with files and each of those steps might throw an exception. You don't necessarily want to chop up that piece of code into a bunch of separate functions.

Even in your Factorial example. You could have multiple checks:
1) Is the type correct?
2) Is the passed in number an integer?
3) Is the passed in number >= 0

How are those tests integrated together? I've seen things like this which seem over the top:

try
code
except
exception
else:
try
code
except
exception
else:
try
etc

Is there a better way?

Ответить
@davidreynolds9649
@davidreynolds9649 - 15.08.2017 22:58

What is the document/environment you are using to display this?

Ответить