Dealing with runtime errors Python 3


show more Dealing with runtime errors provides you with in-depth training on Developer. Taught by Bill Weinman as part of the Python 3 Essential Training show less
please wait ...

Dealing with runtime errors

Sometimes when running error into your code, they won't be syntax errors. instead they will be errors that don't show up until you try to run the code. We call these runtime errors. And we got some examples here. Let's make a working copy of this mvc errors.py, and we'll call this mvc-working.py. Open up that working copy and here we have demonstration file of a mvc model.

mvc stands for Model View Controller, and if we run this and look at the output, you'll see that things aren't quite okay in the first forest here. So couple of places we have this bound method being printed out and that is not necessarily what we are looking for. So let's see we can hunt this bound. It says bound method Duck.feathers, bound method Person.feathers, bound method Dog.feathers.

And so here is the feathers method. This gets inherited. We have Duck, Person and Dog and these are all inherit animal actions and the animal actions has the method feathers. So like it's inherited into ...

Dealing with runtime errors
Video duration: 4m 0s 6h 36m Beginner

Viewers:

Dealing with runtime errors provides you with in-depth training on Developer. Taught by Bill Weinman as part of the Python 3 Essential Training

Subjects:
Developer Web
Software:
Python
Author:
please wait ...