Archive

Posts Tagged ‘python’

Coping with “DeprecationWarning: BaseException” Warnings in Python

January 6th, 2011 No comments

BaseException has been deprecated as of Python 2.6. So if you have something like this in your code …

try:
     doSomethingStupid()
except MyException, e:
     print e.message

… you will run in some warnings. This is a quick way to fix those problems:

try:
     doSomethingStupid()
except MyException, e:
     print str(e)
Tags:

Portable Python for Windows

October 4th, 2009 No comments

You are looking for a Python version to run from your USB drive? Then relax and head right over to python.org! They provide up-to-date versions of Portable Python. Even more, they bundle all the plugins you will need on Windows:
* Django-1.0.2-final
* IPython-0.9.1
* PIL-1.1.6
* Py2exe-0.6.9
* PyGame-1.8.1
* PyReadline-1.5
* PyScripter v1.9.9.6
* PyWin32-212
* Rpyc-2.60
* SPE-0.8.4.c
* wxPython-unicode-2.8.9.1

Ok, nearly all the plugins you will need :)

Have a look at pymssql.sf.net for a  Microsoft SQL Server module.

Performance Optimization WordPress Plugins by W3 EDGE