On Fri, 16 Feb 2018 12:05:36 -0800 (PST)
"Edward K. Ream" <[email protected]> wrote:

> On Friday, February 16, 2018 at 1:59:49 PM UTC-6, Edward K. Ream
> wrote:
> 
> Rev 79d92fa contains the present code.  Can you see anything amiss?
> >  
> 
> How weird.  "2" evaluates and shows correctly, but repr(g) evaluates 
> correctly but shows nothing(!!)

I'd just do
response = {'answer': repr(answer)}
unconditionally, and not try json.dumps() on the non-repr version
first, because it's more consistent to just show Python's view of the
object, and not mess with passing simple types via JSON to javascript
to render while rendering other things in Python and passing the string.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to