Recent Posts

Python: Pickle in Python2 and Python3

less than 1 minute read

The python3 pickle.load() function has optional keyword arguments that can be used to control compatibility support for pickle stream generated by Python 2:

Python: An improved tuple

1 minute read

A downside of plain tuples is that the data you store in them can only be pulled out by accessing it through integer indexes. You can’t give names to individ...

Python: MyPy variable annotations

less than 1 minute read

In Python 3.6, variables (in global, class or local scope) can now have type annotations using either of the following two forms:

Python: Mutable default arguments

1 minute read

One of the most confusing moments for new developers is when they discover how Python treats default arguments in function definitions.