All articles

  1. Workingenv is dead, long live Virtualenv!

    A lot of people have found workingenv useful, but it’s always been a bit fragile. If you’ve seen the .../site.py is not a setuptools-generated site.py; please remove it. message, you know what I mean.

    For a while I tried to refactor and improve workingenv, but it …

  2. lxml.html

    Over the summer I did quite a bit of work on lxml.html. I’m pretty excited about it, because with just a little work HTML starts to be very usefully manipulatable. This isn’t how I’ve felt about HTML in the past, with all HTML emerging from templates …

  3. FlatAtompub

    A little while ago I decided to whip up a small Atompub server to get my head around the Atom Publishing Protocol. I called it FlatAtomPub because it was just storing stuff in flat files. I’m not committing to that name. It was also a chance to kick the …

  4. Re-raising Exceptions

    After reading Chris McDonough’s What Not To Do When Writing Python Software, it occurred to me that many people don’t actually know how to properly re-raise exceptions. So a little mini-tutorial for Python programmers, about exceptions…

    First, this is bad:

    try:
        some_code()
    except:
        revert_stuff()
        raise Exception("some_code failed …
  5. 9/11/2007

    So, today is 9/11. I almost missed it. It’s not like it catches you by surprise, you’re not going to forget the date. But it’s just been slipping by for a few years now without much notice.

    As an event it is still very important. History …

  6. WebOb

    I’ve have it in my head to extract/rewrite parts of Paste lately. Tempita was one example.

    The request and response functions in Paste grew very organically. I wasn’t trying to create a framework, so I studiously avoided anything that might look like a request or response object …

  7. DictMixin

    Quite some time ago I gave a little presentation on DictMixin at ChiPy. If you haven’t used DictMixin before, it’s a class that implements all the derivative methods of dictionaries so you only have to implement the most minimal set: __getitem__, __setitem__, __delitem__, and keys. It’s a …

« Page 11 / 13 »

This is the personal site of Ian Bicking. The opinions expressed here are my own.