Archives: February 2011

How to find a python library’s version?

Often times we need to check the version of a python library installed. I see there is no standard attribute convention for it. Most often it is  __version__ or Version or version or ver or Ver etc.,  So I use the dir command on the module to find out the exact attribute name for the

Read on »

How to use *args and **kwargs?

Often times you may notice python codes having  function signatures with both *args and **kwargs. This nice article explains how to use these both when calling functions and within function body.

Read on »