Quickly comment out block of code in Python
While debugging a python module I needed to remove sections of code for quick functionality testing. For those not familiar with python the hash (#) character is used to comment out a single line of code, so how do you comment out a large block of code ?
Dynamic module loading with Python import
Lets say you don't know the module name before your program starts or your program needs to dynamically link to a module based on a specific version number. In other words you want a generic way of loading a module dynamically without initially knowing the name of the module before the program starts. This can be done easily in python with the following import syntax...