Re: [pylons-discuss] Will `render_to_response` ever return something that is not `pyramid.response.Response`?

2020-10-12 Thread 'Jonathan Vanasco' via pylons-discuss
Thank you, Michael! This helps me a lot. On Monday, October 12, 2020 at 4:16:40 PM UTC-4 mmer...@gmail.com wrote: > There is a null_renderer in Pyramid, but it's not available via > render_to_response. I do not see a code path that would return anything > other than an object implementing

Re: [pylons-discuss] Will `render_to_response` ever return something that is not `pyramid.response.Response`?

2020-10-12 Thread Michael Merickel
There is a null_renderer in Pyramid, but it's not available via render_to_response. I do not see a code path that would return anything other than an object implementing pyramid.interfaces.IResponse (the expected return value from the app's configured IResponseFactory). This is, of course,

[pylons-discuss] Will `render_to_response` ever return something that is not `pyramid.response.Response`?

2020-10-12 Thread 'Jonathan Vanasco' via pylons-discuss
I've looked at the code and am pretty sure the answer is no, but a bunch of subclasses are used here, so I think it's best to ask -- Will render_to_response ever return something that is not `pyramid.response.Response`? I have a small library that will act on the output of