Changes between Initial Version and Version 4 of Ticket #16398
- Timestamp:
- Jul 4, 2011, 11:49:31 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16398
- Property Has patch set
-
Ticket #16398 – Description
initial v4 1 1 My use case: 2 2 {{{ 3 #!python 3 4 # Current procedure 4 5 def myview(req): … … 12 13 return resp.write(json.dumps({'msg': 'Hello World!'})) 13 14 14 HttpResponse.write() returns None initially. It would be really nice if .write() would return self so I can return an HttpResponse object. Instead I have to take up an extra line of code (and in my application, that is a lot when duplicated). 15 }}} 16 `HttpResponse.write()` returns None initially. It would be really nice if .write() would return self so I can return an `HttpResponse` object. Instead I have to take up an extra line of code (and in my application, that is a lot when duplicated). 15 17 16 An extension on this request could be that all public methods on HttpResponseshould return self.18 An extension on this request could be that all public methods on `HttpResponse` should return self.