Simon Willison’s Weblog

Subscribe
Atom feed for python

1,161 posts tagged “python”

The Python programming language.

2007

start.gotapi.com. Lightning fast lookups of API documentation; includes Python docs, YUI, HTML, CSS and lots more.

# 5th June 2007, 6:05 pm / css, html, yui, python, docs, documentation, gotapi

’tie’ considered harmful (via) Rich Skrenta on the disadvantages of abstractions like Perl’s tie, which lets you create hash data structures that aren’t actually hashes. Operator overloading (as seen in Python) suffers the same problems.

# 30th May 2007, 11:11 pm / operatoroverloading, perl, python, tie, rich-skrenta

oxfordgeeks.net

Nat and I had a bit of a mini-hackday this bank holiday Monday. Nat’s been doing a great job summoning local geeks out of the woodwork with Oxford Geek Nights event, but it’s still pretty hard to find other interesting events in the Oxfordshire area. It’s not that there aren’t any, it’s just that the geek community in Oxford is currently pretty fragmented.

[... 295 words]

Levenshtein. Python C extension for Levenshtein distance and other advanced diff functions.

# 27th May 2007, 6:51 pm / python, levenshtein

Test stubbing httplib2. Nice demonstration of monkey-patching as part of unit testing in Python.

# 10th May 2007, 11:24 pm / monkeypatching, python, testing, joe-gregorio, httplib2

Just because Java was once aimed at a set-top box OS that didn't support multiple address spaces, and just because process creation in Windows used to be slow as a dog, doesn't mean that multiple processes (with judicious use of IPC) aren't a much better approach to writing apps for multi-CPU boxes than threads.

Guido van Rossum

# 8th May 2007, 9:21 pm / guido-van-rossum, threads, python, ipc, java, windows

The One True Object (Part 2). Jim Hugunin describes how the DLR let’s Python / JavaScript / Ruby talk to each other using a message passing abstraction.

# 5th May 2007, 1:27 am / dlr, jimhugunin, microsoft, python, javascript, ruby

The joy of pdb.set_trace(). I use nosetests --pdb-failures as my main entrypoint for Python debugging—it starts the debugger at the first failing test.

# 25th April 2007, 11:37 pm / pdb, python, debugging, testing, nose

django-logging. Looks neat—includes the ability to use Python’s standard logging module to log messages to a footer appended to your site’s HTML output.

# 24th April 2007, 6:50 am / logging, django, python

Turn your Django application in to an OpenID consumer

I’ve just put the finishing touches on the first releasable version of django_openidconsumer, a package that makes it easy to add OpenID consumer support to any Django application.

[... 229 words]

modwsgi. Apache module (written in C) for hosting Python WSGI applications, no mod_python required. Includes Django integration instructions. Has anyone tried this out?

# 14th April 2007, 9:48 am / django, apache, wsgi, python

Avoid IE Brokenness When using Vary and Attachments (via) Django middleware that works around a bug in IE where external applications fail to load content that was served with a Vary header.

# 9th April 2007, 9:41 am / django, ie, middleware, http, python

How to Write a Spelling Corrector. Example code in Python, by Peter Norvig.

# 8th April 2007, 9:42 pm / peter-norvig, python, spelling

Debian GNU/Linux 4.0 released. Includes Iceweasel (Firefox), Icedove (Thunderbird), Iceape (Seamonkey) and Python 2.4.4 as standard.

# 8th April 2007, 6:25 pm / python, mozilla, debian, linux

PyCon Wireless Network. Conference WiFi is generally bad, and getting worse as more people turn up with laptops. Here’s how Sean Reifschneider built a solid network for PyCon 2007 for $2200 in hardware and 70 hours of work.

# 6th April 2007, 10:39 am / wifi, seanreifschneider, pycon, python

Mass Video Conversion Using AWS. How to use S3, SQS, EC2, ffmpeg and some Python to bulk convert videos with Amazon Web Services.

# 3rd April 2007, 11:44 pm / aws, amazon, python, s3, sqs, ec2, ffmpeg

phpsh. An interactive shell for PHP, developed at Facebook and written mostly in Python. Facebook are really pushing their open-source stuff at the moment.

# 3rd April 2007, 9:43 am / php, facebook, python, phpsh

DjangoKit. Early preview release of a tool that lets you package a Django application up as a fully contained OS X application. When Leopard ships with PyObjC this kind of thing will be even easier.

# 29th March 2007, 12:50 am / pyobjc, djangokit, django, python, osx, leopard

PyPy 1.0. The fascinating Python implemented in Python project reaches 1.0, and now includes a JIT compiler. It’s still not recommended for general use though.

# 27th March 2007, 11:48 pm / pypy, python

cmemcache. Python extension for libmemcache which provides more than twice the performance of the pure-Python memcached client. Supported by Django development version.

# 27th March 2007, 1:51 pm / libmemcache, cmemcache, django, memcached, python

The Athena Framework. CERN’s ATLAS particle accelerator experiment is scriptable with Python.

# 26th March 2007, 2:43 pm / python, particlephysics, cern, athena, atlas

Free Software Foundation to switch to Django. “FSF is switching from Zope to Django (both Python powered!) for web application development... Lots of new stuff coming soon, including contributions back to the Django community.”

# 25th March 2007, 7:56 pm / django, zope, python, free-software-foundation

Python web development and frameworks in 2007. A fair and detailed look at the current main options for web development with Python.

# 25th March 2007, 5:30 pm / python

TweetyPy. A Python-based CLI client for Twitter, by Stuart Colville

# 24th March 2007, 4:47 pm / stuart-colville, python, twitter, tweetypy, cli

Algorithm Education in Python (via) A paper describing the usage of Python in Algorithm courses at UC Irvine. I found Python invaluable when I was at university and would have loved to see it become part of the official curriculum.

# 19th March 2007, 1:46 pm / python, education

pg8000 v1.02. The pure Python PostgreSQL library now supports DB-API 2.0 (and SSL too). That didn’t take long!

# 13th March 2007, 9:18 pm / postgresql, dbapi, pg8000, python

pg8000 (via) A pure-Python interface to PostgreSQL, using the PostgreSQL network protocol directly. Doesn’t (yet) support DB-API 2.0, but that’s promised in a future release.

# 9th March 2007, 7:35 pm / postgresql, python, pg8000

Hacking del.icio.us with Python. Nat introduces snaflr, a Python script for republishing selected links from a number of del.icio.us users to one communal account.

# 6th March 2007, 11:11 pm / delicious, python, natalie-downe

Five things I hate about Python. By Jacob Kaplan-Moss. I didn’t know you could force eggs to install unzipped with an option in ~/.pydistutils.cfg—that’s always been my least favourite thing about them.

# 4th March 2007, 10:32 pm / eggs, python, jacob-kaplan-moss

pear 0.8. “A libevent/pyevent-based locking session daemon for the web”. Relational databases aren’t particularly well suited to the access characteristics of session data.

# 4th March 2007, 9:19 pm / sessions, libevent, python