Smalltalk with James Robertson: category: py4u
PY 4U 55: Adding Class Members
About this episode
In python, we don't need to declare attributes of a class inside the definition; they can be dynamically added anytime. Today we'll set up a simple "data structure" type of object as an example
More from Smalltalk with James Robertson: category: py4u
In Python, you can take the instance of a raised exception as an argument to your handler; today we'll have a look at that.
Python lets you add a single else clause to a handler - and it'll get executed only if the execption(s) being handled don't happen
Today we'll have a look at exceptions in Python, and how to handle them
Today we'll import the CounterApp into another Python file and use it
Today we will go over a simple class in Python, as a prelude to adding test cases