Workshop 27th May 2016 4 p.m. Nuffield Theatre Room 1083 (6/1083)
Object Orientation in Python Workshop
Paul Chambers
University of Southampton
- Categories
- NGCM, Python
- Submitter
- Paul Chambers
This event will run alongside the Beginner Python Programming Workshop in a short series of workshops delivered by PhD candidates from the CDT in Next Generation Computational Modelling. Attendees should sign up through Eventbrite.
In this session, the concepts of object oriented programming (OOP) in Python will be explored. These concepts are often covered lightly in undergraduate and basics courses, however large amounts of scientific Python packages are written in an object oriented manner. The skills learned in this workshop should therefore enable scientists to write (and more importantly, read) the packages they are using, and also serve as a starting platform for those wanting to learn more advanced OOP languages such as C++ or Java.
The following topics will be covered in the context of OOP in Python:
- Classes
- Python 2.X vs 3.X
- Initialization and
__init__
- self
- Encapsulation
- Inheritance
- Magic operators
Material can be viewed online with nbviewer.
Prior knowledge of programming in Python is assumed, including e.g. lists, for loops, conditionals, numpy and matplotlib. See here for useful reference.
Participants are required to bring a laptop with Python 3.5 installed, preferably the Anaconda distribution.