Recent Posts

(TIL) Python: Flushing while printing

less than 1 minute read

Since Python 3.3, you can force the normal print() function to flush without the need to use sys.stdout.flush(); just set the flush keyword argument to Tr...

(TIL) 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:

(TIL) 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...