Hi there 👋

Welcome to my blog Hello World! Here I write about all the interesting stuff that I happen to stumble upon

Go + Python = ❤️

Calling go from python ...

August 6, 2020 · 4 min · Me

Introspection in python 🕵🏽

Introspection in python is very interesting and it can help debug in various situation. Introspecting type information. We can use type function to check the type of python object. In the example below we assign 7 to variable val. And as we see type of val is class int. We can further check what is the type of int and surprise surprise it is of class type. val = 7 print(type(val)) print(type(int)) <class 'int'> <class 'type'> We can do a similar introspection with a class object....

August 5, 2020 · 4 min · Me

Adventure with python decorator 🚣

Decorator can be intimidating at first and if you have passed that phase then it might be difficult to find the proper use case, here I will try to cover the basics of decorator and end with some use cases that might be useful. ...

July 16, 2020 · 7 min · Me

Using python generator to count word frequency in text file 🗒️

In this post, I will use a python generator to count the word frequency from a big text file and try to use as little memory as possible. ...

July 15, 2020 · 9 min · Me