diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2017-05-22 14:04:49 -0700 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2017-05-22 14:12:25 -0700 |
commit | 829c77e30574d0051f6feac941d7fe667e31e752 (patch) | |
tree | 99d295165ba1a721cf65d5cd95e4b30f37ffe670 | |
parent | 2f0ab049d89658997eabeb97fbdcadaa634b3c87 (diff) | |
download | webob-pr/203.tar.gz |
Add CHANGES notepr/203
-rw-r--r-- | CHANGES.txt | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 421ee8f..700ac77 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,27 @@ Unreleased ---------- +Backwards Incompatibilities +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- When calling a ``@wsgify`` decorated function, the default arguments passed + to ``@wsgify`` are now used when called with the request, and not as a + `start_response` + + .. code:: + + def hello(req, name): + return "Hello, %s!" % name + app = wsgify(hello, args=("Fred",)) + + req = Request.blank('/') + resp = req.get_response(app) # => "Hello, Fred" + resp2 = app(req) # => "Hello, Fred" + + Previously the ``resp2`` line would have failed with a ``TypeError``. With + this change there is no way to override the default arguments with no + arguments. See https://github.com/Pylons/webob/pull/203 + Experimental Features ~~~~~~~~~~~~~~~~~~~~~ @@ -8,7 +29,7 @@ These features are experimental and may change at any point in the future. - The cookie APIs now have the ability to set the SameSite attribute on a cookie in both ``webob.cookies.make_cookie`` and - ``webob.cookies.CookieProfile``. + ``webob.cookies.CookieProfile``. See https://github.com/Pylons/webob/pull/255 Bugfix ~~~~~~ |