After importing a module in python use the following to find out where it was imported from: import astroid astroid.__file__ '/usr/local/lib/python2.7/dist-packages/astroid/__init__.pyc' This is...
Read more →
We often need to convert objects into their string representation for nice output. To do this in python we can use the str() built-in function. However, it may not always be the best function to...
Read more →
The easiest way to install PySide 1.1.1 on Centos is using the BuildScripts. However, the build_and_install script needs a minor tweak before it will run successfully. Firstly, clone the PySide...
Read more →