On Mon, Nov 6, 2017 at 12:19 PM, vitalije <[email protected]> wrote:

Here is example script that I have made so far.
>     g.es(pprint.pformat(resultDict))
>

​Either of the following will print dicts and lists more clearly than
pprint.pformat:

    g.printObj(resultDict)
    g.es(g.objToString(resultDict))

I recommend them especially when dicts contain lists or other dicts.

The advantage of pprint is that it is guaranteed to be equivalent to the
original object.  That might be true of g.printObj and g.objToString, but
maybe not.

Edward

-- 
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