blog banner alt
Introspection in Python

Introspection: Reflection in Python

Last updated Feb 17, 2018

If you are from another programming language background, you might have used the Reflection feature with in that language.

For example, the ReflectionClass in PHP or ‘object.getMethods()’ in Java.

In Python, the terms Introspection and Reflection

Read More

Dynamic Import in Python 3

Dynamic Import in Python 3

Last updated Feb 10, 2018

A couple of month ago, I made a post about Factory Patten in Python3. If you’ve looked in the source code on Github, you probably have noticed a few changes, especially some weird looking code in animals/fish/__init__.py.

...

Read More

Easy factory pattern in python3

Factory Pattern in Python 3 - The Simple Version

Last updated Nov 24, 2017

If you came from another programming language background, you probably already know what “factory method design pattern” means in software development. To put it in a simple manner, Factory Method Pattern is a design pattern which you let a function / method to handle the creation of an object.

I’m sure you have probably come across other tutorials on h...

Read More