Archive for the ‘python’ Category

PyDev Tutorial

Friday, November 20th, 2009

I found a good tutorial on IBM on doing Python development with Eclipse. It might be a little out of date, but I think only the screens got moved around a little bit. It includes details on how to use ant, which I've recently started using with cruise ...

PyTables user’s guide

Thursday, October 1st, 2009

I finally found the manual for PyTables. In case anyone else is as blind as I am, I'm linking to it here.

Installing NumPy on MacOS X Snow Leopard

Tuesday, September 22nd, 2009

NumPy is a requirement to work with PyTables. This is the second step in the install process, after getting HDF5 set up. These instructions are based on the ones found on the NumPy site, but I'm summarizing things for my own use later on. First, you'll need to install the Fortran ...

Issues Compiling HDf5 1.8.3 on MacOS X Snow Leopard

Monday, September 21st, 2009

I'm trying to evaluate pytables as a replacement for very large Python dictionaries, but having some issues getting HDF5 installed on my Mac (OS X Snow Leopard). I've been getting this error: configure: error: C compiler cannot create executables I haven't been able to figure out what's wrong yet - anyone ...

Mutable class instance variables in Python act like they’re static

Thursday, May 29th, 2008

There's a weird behavior in Python when dealing with Mutable types such as dictionaries, that when you modify a variable defined as a class attribute, you're actually modifying a shared dictionary amongst all the classes. This seemed weird to me. You can read the lovely discussion about it, ...

Getting phpsh to work on a mac

Tuesday, December 18th, 2007

I had an issue getting phpsh to work on my mac - I kept getting the following error: Traceback (most recent call last): File "./phpsh", line 20, in import readline OK, seems easy enough. So I compiled python with readline support. ./configure --prefix=/usr/local/python --enable-readline I change the ...