All articles

  1. 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 …

  2. 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 …

  3. 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 …
  4. 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 …

  5. 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 …

  6. 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 …

  7. Reflection and Description Of Meaning

    After writing my last post I thought I might follow up with a bit of cognitive speculation. Since the first comment was exactly about the issue I was thinking about writing on, I might as well follow up quickly.

    Jeff Snell replied:

    You parse semantic markup in rich text all …

« Page 11 / 13 »

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