application is not thread safe any longer.
The python standard library comes with a utility called "thread locals".
- A thread local is an global object where you can put stuff on and get back
- later in a thread safe way. That means whenver you set or get an object
+ A thread local is a global object where you can put stuff on and get back
+ later in a thread safe way. That means whenever you set or get an object
to / from a thread local object the thread local object checks in which
thread you are and delivers the correct value.
This however has a few disadvantages. For example beside threads there
are other ways to handle concurrency in Python. A very popular approach
- are greenlets. A
nd also if every request gets its own thread is not
+ are greenlets. A every request gets its own thread is not
guaranteed in WSGI. It could be that a request is reusing a thread from
before and data is left in the thread local object.
This page displays all available information about the WSGI server and
- the underl
aying Python interpreter that are available.
+ the underlying Python interpreter that are available.
<h2 id="python-interpreter">Python Interpreter</h2>
- This module implements various utilities for WSGI applciations. Most of
- them are used by the request and response wrappers but espeically for
+ This module implements various utilities for WSGI applications. Most of
+ them are used by the request and response wrappers but especially for
middleware development it makes sense to use them without the wrappers.
:copyright: 2007-2008 by Armin Ronacher, Georg Brandl.