File: quoting.txt

package info (click to toggle)
objgraph 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 928 kB
  • ctags: 117
  • sloc: python: 647; makefile: 138; sh: 18
file content (12 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
Quoting unsafe characters
-------------------------

Let's make sure our string quoting function can handle *anything*:

    >>> import objgraph
    >>> all_the_chars = dict((chr(i), i) for i in range(256))
    >>> objgraph.show_refs(all_the_chars, too_many=600,
    ...                    filename='all-the-chars.dot')
    Graph written to all-the-chars.dot (... nodes)

Trust me, you do not want to see the resulting image.