Useful wsgi.org Specs

2007-08-18 at 05:33 | In devel, lang:en, micro, pycoon | Leave a Comment

The specs named wsgiorg.routing_args and x-wsgiorg.throw_errors by Ian Bicking do make sense. I’m going to implement them in Pycoon 0.3 in the near future.

Reminder: Pycoon 0.3 (the first Pycoon beta) is the significant WSGIfied rewrite of 0.2. It will be released in Fall 2007. All the 0.2a[1-5] versions were released for the developers only.

wsgistraw 0.1.1 Released

2007-08-16 at 18:00 | In devel, lang:en, update | Leave a Comment

I’ve released wsgistraw 0.1.1. I’ve added app_proxy, fixed a couple of inconsistencies with PEP 333. Here is the summary of changes:

  • (+) Added public app_proxy class (former _app_proxy, thanks to Ian Bicking)
  • (-) If an app uses write() then app_proxy invokes response.close() after iterating over it
  • (-) If an app hasn’t invoked start_resposnse() before returning then app_proxy forces this invocation by calling response.next()

And that’s how the new app_proxy class works:

class lowercase(object):
    def __init__(self, app):
        self.app = app
    def __call__(self, environ, start_response):
        proxy = wsgistraw.app_proxy(self.app)
        status, headers, response = proxy(environ)
        start_response(status, headers)
        return (s.lower() for s in response)

First Release of wsgistraw

2007-08-11 at 06:14 | In devel, lang:en, update | 3 Comments

I’ve just released my wsgistraw library v0.1. wsgistraw stands for WSGI without start_response and write. It is a tiny Python library that simplifies coding WSGI applications and middleware by removing start_response and write from signatures of functions.

Влияние

2007-08-06 at 00:35 | In fun, life | 3 Comments

Я сейчас перечитываю «Лекции по введению в психоанализ» Зигмунда Фрейда. Сегодня я гулял с подругой в ЦПКиО и, увидев играющих в футбол на небольшом специальном поле, в восхищении сказал ей: Я тоже хочу проиграть в футбол! (проиграть вместо поиграть). Эту оговорку можно легко объяснить, вспомнив, что уже третьи выходные подряд я испытываю разочарование и злость от проигрышей «Зенита» в ЧР-2007. Вот как можно почерпнуть примеры из жизни, если то, что ты читаешь, влияет на тебя.

Lisp Cycles

2007-08-01 at 16:56 | In devel, fun, lang:en, micro | Leave a Comment

(via xkcd.com)

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.