File: quoting.txt

package info (click to toggle)
objgraph 3.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,224 kB
  • sloc: python: 1,188; makefile: 108; sh: 8
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.