Skip to content
Myr

Fix some typos.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Georg Brandl · committed by Armin Ronacher · parent 8e4bcaf · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/design.rst+3 added-3 removed
32 unmodified lines
33 def index():34 return 'Hello World!'3536There are three major reasons for this. The most important one is that37implicit application objects require that there may only be one class at38the time. There are ways to fake multiple application with a single37implicit application objects require that there may only be one instance at38the time. There are ways to fake multiple applications with a single39application object, like maintaining a stack of applications, but this40causes some problems I won't outline here in detail. Now the question is:41when does a microframework need more than one application at the same42time? A good example for this is unittesting. When you want to test43something it can be very helpful to create a minimal application to test44specific behavior. When the application object is deleted everything it45allocated will be freed again.4647Another thing that becomes possible when you have an explicit object laying47Another thing that becomes possible when you have an explicit object lying48around in your code is that you can subclass the base class49(:class:`~flask.Flask`) to alter specific behaviour. This would not be50possible without hacks if the object were created ahead of time for you51based on a class that is not exposed to you.
96 unmodified lines