Dashboard > People > Nozomu Kaneko > Home > SandBox
  Nozomu Kaneko Log In | Sign Up   View a printable version of the current page.  
  SandBox
Added by Nozomu Kaneko, last edited by Nozomu Kaneko on Jul 15, 2007  (view change)
Labels: 
(None)

__call__

footnote test [1]

must not
〜を してはならない

1
2
3
4
class AppClass:
    def __init__(self, environ, start_response):
        self.environ = environ
        self.start = start_response


This document specifies a proposed standard interface between web servers and Python web applications or frameworks, to promote web application portability across a variety of web servers.

この文書は、Web サーバーと Python Web アプリケーションあるいは Web フレームワークの間の標準インターフェース案を示したものである。この提案は、様々な Web サーバー間の Web アプリケーションの移植性を促進する。

しかしながら、いくつかの状況では、サーバまたはゲートウェイが Content-Length ヘッダーを生成するか、または少なくともクライアント接続を閉じる必要性を避けることができるかもしれない。アプリケーションが write() callable を呼び出して いなくて、iterable を返し、その len() が 1 である場合、サーバは、iterable によって yield された最初の文字列の長さを取得しながら自動的に Content-Length を決定することができる。

PEP 325


[1] The Python Wiki "Web Programming" topic
(http://www.python.org/cgi-bin/moinmoin/WebProgramming)

Site running on a free Atlassian Confluence Open Source Project License granted to Pylons. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.3.3 Build:#645 Feb 13, 2007) - Bug/feature request - Contact Administrators