[ Home | About | Licence | About author | Contact ]

Written by Oleksandr Gavenko (AKA gavenkoa), compiled at 2015-10-05 from rev 764bb173578d.

Python

Byte compile .py and check for errors.

$ python -m compileall $dir

Install python modules/packages.

http://wiki.python.org/moin/CheeseShopTutorial
Installing Distributions from the Python Package Index (Start Here)

Uninstall python modules.

Install again and save list of installed files:

$ python setup.py install --record files.txt
$ rm `cat files.txt`

http://peak.telecommunity.com/DevCenter/EasyInstall#uninstalling-packages
              Uninstalling Packages

Debugging Python code.

Pretty print under Python.

import pprint
print(pprint.pformat('string'))
print(pprint.pformat(['1', '2']))

See: