Simon Willison’s Weblog

Subscribe

924 items tagged “python”

2006

SubWiki (via) A wiki that uses Subversion for its data repository, implemented as a Python CGI. # 16th December 2006, 7:19 pm

Dependency injection is the enterprisey name for trampling over namespaces with reckless abandon.

Ted Dziuba # 16th December 2006, 1:05 am

[Python-3000] Refactoring tool available. Guido’s initial work on a tool for converting Python 2.x code to Python 3K. # 15th December 2006, 2:19 pm

Statement Functions. Smart workaround for the lack of multi-line lambdas in Python. # 12th December 2006, 7:08 pm

100% Python SCGI implementation. SCGI is like FastCGI but simpler. # 12th December 2006, 1:37 pm

python-cluster. Fantastic interface design—pass a list and a function and you’re done. # 7th December 2006, 5:19 pm

Incompatible SQLite in OS X and Python. I’ve hit this problem; James has the solution. # 28th November 2006, 5:40 pm

Fun with ctypes

This probably only works on Intel-based OS X machines:

[... 86 words]

What I’m excited about, post-conference edition

Wow, I’ve had a really busy month. I’ve attended (and spoken at) BarCamp London, Media in Transition, d.Construct, RailsConf Europe, Euro Foo and EuroOSCON. All were excellent, and each one nicely complemented the others. I’m exhausted. I think my brain is full.

[... 377 words]

HOWTO: Adding an RSS feed to a Subversion Server. Using post-commit hooks and some Python. # 17th August 2006, 11:17 pm

YDN Python Developer Center. Launched today: tips and tutorials on accessing Yahoo! Web services from Python. # 8th August 2006, 8:57 pm

The YDN Python Developer Center

I recently had the opportunity to put together the Python Developer Center for the Yahoo! Developer Network. YDN is one of my favourite parts of Yahoo! so I jumped at the chance, and the resulting mini-site is now online (YDN blog post here).

[... 235 words]

Exciting stuff in Python 2.5

Python 2.5 alpha 1 is out, and as usual the What’s New in Python 2.5 document provides a pleasant overview of the new features. There are some real treats in there. While I’m hoping that the syntax for conditional expressions will grow on me, I’m looking forward to Partial function application becoming a common Python idiom. Relative imports are going to make Django applications a lot easier to redistribute, and I can’t wait to see all the crazy hacks that result from the introduction of coroutines.

[... 291 words]

2005

Things I learned at EuroOSCON

Last week was the first ever O’Reilly European Open Source Convention, held in the magnificent NH Grand Hotel Krasnapolsky in Amsterdam. It was the first big budget conference I’d been too (previously I’ve stuck to less expensive affairs such as SxSW Interactive and PyCon) but the money seems to have been well spent. The venue was fantastic and there was a great line-up of speakers, keynotes and panels.

[... 878 words]

[pypy-dev] PyPy released! A full Python implementation written in Python. # 25th May 2005, 12:52 pm

2004

Python Parsing Tools (via) Ned’s compilation of Python parsing libraries. # 30th November 2004, 2:53 pm

Python will assimilate you (via) “From the wind-up school of technology strategizing” # 8th August 2004, 6:49 pm

PHP 5 Release Candidate 1

I haven’t blogged much about PHP in a while because I’ve been up to my nose in mod_python and loving every minute of it. This news is just too important to miss: PHP 5 Release Candidate 1 has been released, bringing the first production-ready release tantilisingly close. While I doubt PHP 5 will tempt me back it’s definitely an exciting upgrade—my biggest complaint with PHP 4 is the brain-dead object model which defaults to copying whole objects rather than passing references, and this is one of the many things addressed by PHP 5. The new libxml2 powered XML features sound really powerful, and SQLite as an on-board database should be ideal for knocking out small stand-alone applications without needing to set up a mySQL database for them.

[... 173 words]

Ned Batchelder: Showing C header structure. Using Python to maked other languages less painful # 4th February 2004, 1:19 am

Ned Batchelder: handyxml. Yet another XML object wrapper for Python, this time with full DOM method support included # 26th January 2004, 2:52 am

AppScripting (via) The power of AppleScript with the less verbose syntax of Python # 6th January 2004, 2:12 am

2003

Donate to the PSF! Support Python as well. # 20th December 2003, 10:02 pm

Extracting the length from MP3 files with Python

Ned Batchelder recently wrote about the difficulties involved in extracting the length from an MP3 file. We’re going to need to solve this problem soon at work; luckily, it seems that the answer may lie in the Python bindings for mpgedit, an audio file editing library available for both Windows and Linux.

[... 149 words]

Python Natural Language Toolkit (via) Yet another reason Python at University is a great idea # 23rd November 2003, 11:54 pm

“sexeger”[::-1]

Via Ned Batchelder, an article on Reversing Regular Expressions from Perl.com. Otherwise known as Sexeger, these offer a performance boost over normal regular expressions for certain tasks. The basic idea is pretty simple: searching backwards through a string using a regular expression can be a messy business, but by reversing both the string and the expression, running it, then reversing the result far better performance can be achieved (reversing a string is a relatively inexpensive operation). The example code is in Perl, but I couldn’t resist trying it in Python. The challenge is to find the last number occurring in a string.

[... 384 words]

Google conspiracy theories

Microdoc News have a poorly researched story suggesting that Google have been engineering their search results to favour their own properties:

[... 582 words]

Interactive Python

I adore the Python interactive interpreter. I use it for development (it’s amazing how many bugs you can skip by testing your code line by line in the interactive environment), I use it for calculations, but recently I’ve also found myself using it just as a general tool for answering questions.

[... 983 words]