All articles

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

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

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

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

  6. 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 …
  7. Atom Publishing Protocol: Atompub

    Doing stuff with the Atom Publishing Protocol, I’ve noticed that it goes by two (shortened) names: APP and Atompub. I’d become used to calling it APP, but I’ve decided to make a conscious effort to call it Atompub from now on, and I encourage you all to …

« Page 14 / 16 »

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