This topic is presented on public course
Python Programming
Examples from our training material
| dec01 | decorator - to log function calls |
| dt.py | doctest - a clean example |
| dta.py | doctest - a longer example |
| dtf.py | doctest - an example that triggers a failure report |
| gtkfeedback.py | Python GTK - feeding back into the GUI |
| hound.py | Object definitions for profiler desmonstration |
| hwpgt.py | Python GTK Hello World |
| multibut.py | Python GTK - events, layouts, quit button |
| profdemo.py | How to run the profiler |
| staboth | Static Method in Python (classmethod - all versions) |
| stameth | Static Method in Python (all versions) |
| stawithat | Static Method in Python (Decorator - 2.4 and later) |
| stawrong | bound method running on a class FAILS |
| thems.py | Polymorphism demonstration - used to demonstrate the profiler |
| utes.py | Simple unittest demonstration |
| utes2.py | unittest nesting demonstration |
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Decorators.
Static Methods.
unittest and Doctest.
Python GTK.
The Profiler.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 600 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.