Home
last modified time | relevance | path

Searched refs:maxlevels (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython2/Lib/
Dcompileall.py21 def compile_dir(dir, maxlevels=10, ddir=None, argument
52 elif maxlevels > 0 and \
56 if not compile_dir(fullname, maxlevels - 1, dfile, force, rx,
113 def compile_path(skip_curdir=1, maxlevels=0, force=0, quiet=0): argument
128 success = success and compile_dir(dir, maxlevels, None,
182 maxlevels = 10
189 if o == '-l': maxlevels = 0
212 if not compile_dir(arg, maxlevels, ddir,
Dpprint.py233 def format(self, object, context, maxlevels, level): argument
238 return _safe_repr(object, context, maxlevels, level)
243 def _safe_repr(object, context, maxlevels, level): argument
269 if maxlevels and level >= maxlevels:
281 krepr, kreadable, krecur = saferepr(k, context, maxlevels, level)
282 vrepr, vreadable, vrecur = saferepr(v, context, maxlevels, level)
303 if maxlevels and level >= maxlevels:
314 orepr, oreadable, orecur = _safe_repr(o, context, maxlevels, level)
/external/python/cpython3/Lib/
Dcompileall.py25 def _walk_dir(dir, maxlevels, quiet=0): argument
43 elif (maxlevels > 0 and name != os.curdir and name != os.pardir and
45 yield from _walk_dir(fullname, maxlevels=maxlevels - 1,
48 def compile_dir(dir, maxlevels=None, ddir=None, force=False, argument
93 if maxlevels is None:
94 maxlevels = sys.getrecursionlimit()
95 files = _walk_dir(dir, quiet=quiet, maxlevels=maxlevels)
273 def compile_path(skip_curdir=1, maxlevels=0, force=False, quiet=0, argument
296 maxlevels,
389 maxlevels = args.recursion
[all …]
Dpprint.py439 def format(self, object, context, maxlevels, level): argument
444 return _safe_repr(object, context, maxlevels, level, self._sort_dicts)
529 def _safe_repr(object, context, maxlevels, level, sort_dicts): argument
539 if maxlevels and level >= maxlevels:
554 krepr, kreadable, krecur = _safe_repr(k, context, maxlevels, level, sort_dicts)
555 vrepr, vreadable, vrecur = _safe_repr(v, context, maxlevels, level, sort_dicts)
576 if maxlevels and level >= maxlevels:
587 orepr, oreadable, orecur = _safe_repr(o, context, maxlevels, level, sort_dicts)
/external/python/cpython2/Doc/library/
Dcompileall.rst73 .. function:: compile_dir(dir[, maxlevels[, ddir[, force[, rx[, quiet]]]]])
78 The *maxlevels* parameter is used to limit the depth of the recursion; it
118 .. function:: compile_path([skip_curdir[, maxlevels[, force]]])
123 function. Note that unlike the other compile functions, ``maxlevels``
Dpprint.rst184 .. method:: PrettyPrinter.format(object, context, maxlevels, level)
195 *maxlevels*, gives the requested limit to recursion; this will be ``0`` if there
/external/python/cpython2/Lib/test/
Dtest_pprint.py475 def format(self, object, context, maxlevels, level): argument
483 self, object, context, maxlevels, level)
/external/python/cpython3/Doc/library/
Dcompileall.rst151 .. function:: compile_dir(dir, maxlevels=sys.getrecursionlimit(), ddir=None, force=False, rx=None, …
157 The *maxlevels* parameter is used to limit the depth of the recursion; it
232 Default value of *maxlevels* was changed from ``10`` to ``sys.getrecursionlimit()``
292 .. function:: compile_path(skip_curdir=True, maxlevels=0, force=False, quiet=0, legacy=False, optim…
299 function. Note that unlike the other compile functions, ``maxlevels``
Dpprint.rst221 .. method:: PrettyPrinter.format(object, context, maxlevels, level)
232 *maxlevels*, gives the requested limit to recursion; this will be ``0`` if there
/external/python/cpython3/Lib/test/
Dtest_pprint.py1066 def format(self, object, context, maxlevels, level): argument
1074 self, object, context, maxlevels, level)
Dtest_compileall.py229 compileall.compile_dir(self.directory, quiet=True, maxlevels=depth - 1)
232 compileall.compile_dir(self.directory, quiet=True, maxlevels=depth)