Archive for the 'Python' Category

path python module

Friday, December 3rd, 2004

I don’t think I’ve mentioned the path python module in detail before, so I will now.

It’s amazingly useful, and so much more intuitive than the standard library equivalents (os.path, etc.). If you’re like me, and you never got the hang of iteration or recursion in bash scripting, this module is for you.

I’m using it […]

Numeric Python on developerworks

Wednesday, November 5th, 2003

Look kids! David Mertz has an article about Numeric on developer works. I wonder if he’ll explain why no one’s using NumArray yet?

python optimization

Monday, October 27th, 2003

Ian Bicking, one of those bearded programmer types (never trust a programmer without a beard) has a great blog entry yesterday about optimization in Python. I have to admit that my skills in this area are lacking. I’ve futzed around with C Extensions to Python, and I’ve used the profile module more than […]

how nice am I?

Monday, October 20th, 2003

Here’s something nice you can do for other people, if you have Mac OSX.

Download the HTML Python documentation from Python.org. Unpack it in /Library/Webserver/PythonDocs. Edit your /etc/httpd/httpd.conf and insert the following, just after the bit about the online manual.

Alias /python/ "/Library/WebServer/PythonDocs/"

<Directory “/Library/WebServer/PythonDocs”> Options Indexes FollowSymlinks MultiViews […]

pycut, a cut for Python nerds

Wednesday, July 16th, 2003

So I often find myself wishing for a ‘cut’ command that used Python split() behavior and Python slice notation. For some reason, I’m often munging text files in the shell. So, I’ve written a little script that satisfies my Pythonic urges. Here it is: pycut.