Python: show where a module was imported from
Published 19 May 2015 under python, software

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 →

Python str() or repr() on a float?
Published 29 January 2015 under python

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 →

PySide on Centos 6.3
Published 22 August 2012 under how to, pyside, centos 6, python

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 →