Dynamic methods and properties in Python

A simple introduction to using Python’s data model, *args, **kwargs, __getattr__, and __getattribute__ methods to implement dynamic methods and properties for classes and objects. Techniques are introduced for refactoring while maintaining backwards compatibility e.g. for an API or library. Prerequisite:Python Installation What is a dynamic method or property? Simply, a Read more…

Python – Intro to Programming Concepts

A simple Python “hello world” program that introduces fundamental programming concepts: printing standard streams functions function arguments string concatenation type hinting default argument values Python modules The concepts introduced in this Python hello world program apply to practically all other programming languages. Prerequisite:Python Installation Python hello world A “hello world” Read more…