Home
last modified time | relevance | path

Searched refs:pprint (Results 1 – 25 of 178) sorted by relevance

12345678

/external/python/cpython3/Lib/test/
Dtest_pprint.py6 import pprint
80 pp = pprint.PrettyPrinter()
81 pp = pprint.PrettyPrinter(indent=4, width=40, depth=5,
83 pp = pprint.PrettyPrinter(4, 40, 5, io.StringIO())
85 pp = pprint.PrettyPrinter(4, 40, 5, io.StringIO(), True)
86 self.assertRaises(ValueError, pprint.PrettyPrinter, indent=-1)
87 self.assertRaises(ValueError, pprint.PrettyPrinter, depth=0)
88 self.assertRaises(ValueError, pprint.PrettyPrinter, depth=-1)
89 self.assertRaises(ValueError, pprint.PrettyPrinter, width=0)
93 pp = pprint.PrettyPrinter()
[all …]
/external/python/cpython2/Lib/test/
Dtest_pprint.py1 import pprint
57 pp = pprint.PrettyPrinter()
62 self.assertFalse(pprint.isrecursive(safe),
64 self.assertTrue(pprint.isreadable(safe),
80 pp = pprint.PrettyPrinter()
83 self.assertTrue(pprint.isrecursive(icky), "expected isrecursive")
84 self.assertFalse(pprint.isreadable(icky), "expected not isreadable")
95 self.assertFalse(pprint.isrecursive(safe),
97 self.assertTrue(pprint.isreadable(safe),
107 pp = pprint.PrettyPrinter()
[all …]
/external/python/google-api-python-client/samples/prediction/
Dprediction.py42 import pprint
92 pprint.pprint(result)
99 pprint.pprint(start)
117 pprint.pprint(status)
124 pprint.pprint(result)
133 pprint.pprint(result)
/external/python/cpython2/Lib/bsddb/test/
Dtest_queue.py6 from pprint import pprint
37 pprint(d.stat())
53 pprint(d.stat())
62 pprint(d.stat())
73 pprint(d.stat())
84 pprint(d.stat())
108 pprint(d.stat())
124 pprint(d.stat())
134 pprint(d.stat())
140 pprint(d.stat())
[all …]
/external/python/cpython2/Doc/library/
Dpprint.rst1 :mod:`pprint` --- Data pretty printer
4 .. module:: pprint
9 **Source code:** :source:`Lib/pprint.py`
13 The :mod:`pprint` module provides a capability to "pretty-print" arbitrary
34 The :mod:`pprint` module defines one class:
57 >>> import pprint
60 >>> pp = pprint.PrettyPrinter(indent=4)
61 >>> pp.pprint(stuff)
70 >>> pp = pprint.PrettyPrinter(depth=6)
71 >>> pp.pprint(tup)
[all …]
/external/python/google-api-python-client/samples/coordinate/
Dcoordinate.py43 import pprint
67 pprint.pprint(jobs_result)
85 pprint.pprint(insert_result)
93 pprint.pprint(update_result)
/external/python/cpython2/Lib/lib2to3/pgen2/
Dgrammar.py131 from pprint import pprint
133 pprint(self.symbol2number)
135 pprint(self.number2symbol)
137 pprint(self.states)
139 pprint(self.dfas)
141 pprint(self.labels)
/external/python/cpython3/Lib/lib2to3/pgen2/
Dgrammar.py130 from pprint import pprint
132 pprint(self.symbol2number)
134 pprint(self.number2symbol)
136 pprint(self.states)
138 pprint(self.dfas)
140 pprint(self.labels)
/external/python/cpython3/Doc/library/
Dpprint.rst1 :mod:`pprint` --- Data pretty printer
4 .. module:: pprint
10 **Source code:** :source:`Lib/pprint.py`
14 The :mod:`pprint` module provides a capability to "pretty-print" arbitrary
28 The :mod:`pprint` module defines one class:
58 >>> import pprint
61 >>> pp = pprint.PrettyPrinter(indent=4)
62 >>> pp.pprint(stuff)
69 >>> pp = pprint.PrettyPrinter(width=41, compact=True)
70 >>> pp.pprint(stuff)
[all …]
/external/python/google-api-python-client/samples/urlshortener/
Durlshortener.py39 import pprint
56 pprint.pprint(resp)
62 pprint.pprint(resp)
/external/python/google-api-python-client/samples/audit/
Daudit.py40 import pprint
61 pprint.pprint(activity_list)
73 pprint.pprint(activity_list)
/external/python/cpython3/Doc/includes/
Ddbpickle.py51 import pprint
73 pprint.pprint(memos)
83 pprint.pprint(memos)
/external/autotest/client/cros/scripts/
Ddevice7 import pprint
46 pprint.pprint(
50 pprint.pprint({property_key:
Dprofile7 import pprint
96 pprint.pprint(shill.dbus2primitive(profile.GetEntry(ident)),
110 pprint.pprint(properties, indent=2)
/external/python/google-api-python-client/samples/groupssettings/
Dgroupsettings.py34 import pprint
80 pprint.pprint(g)
99 pprint.pprint(g1)
/external/clang/bindings/python/examples/cindex/
Dcindex-dump.py58 from pprint import pprint
82 pprint(('diags', map(get_diag_info, tu.diagnostics)))
83 pprint(('nodes', get_info(tu.cursor)))
/external/python/google-api-python-client/samples/customsearch/
Dmain.py25 import pprint
41 pprint.pprint(res)
/external/python/google-api-python-client/samples/searchforshopping/
Dbasic.py8 import pprint
28 pprint.pprint(response)
Dfulltextsearch.py8 import pprint
36 pprint.pprint(response)
Drestricting.py9 import pprint
40 pprint.pprint(response)
Dranking.py8 import pprint
42 pprint.pprint(response)
Dcrowding.py8 import pprint
44 pprint.pprint(response)
Dpagination.py8 import pprint
43 pprint.pprint(response)
/external/python/google-api-python-client/samples/service_account/
Dtasks.py33 import pprint
57 pprint.pprint(lists)
/external/python/cpython3/Tools/scripts/
Dimport_diagnostics.py6 from pprint import pprint
12 pprint(getattr(sys, name))

12345678