Pylons/pyramid_debugtoolbar — comment on commit 34fcff9df6c2de27a633a1563f5e21a285d3b388
File: pyramid_debugtoolbar/panels/templates/request_vars.mako line 88
By everilae:

This actually introduces issue #42 back, since it evaluates to non str or unicode instance again ("repr(v) and v" evaluates to v pretty much always, since repr(v) most likely returns non empty string). This is why using conditional expression might be the way to go, even if it does not work in python2.4 or less (is that compatibility required?). With conditional expression:

${', '.join(v if isinstance(v, basestring) else repr(v) for v in value)|h}