💾 Archived View for tris.fyi › pydoc › reprlib captured on 2023-04-26 at 13:31:41. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Back to module index

Go to module by name

reprlib

Redo the builtin repr() (representation) but with limits on most sizes.

Classes

Repr

repr(self, x)
repr1(self, x, level)
repr_array(self, x, level)
repr_deque(self, x, level)
repr_dict(self, x, level)
repr_frozenset(self, x, level)
repr_instance(self, x, level)
repr_int(self, x, level)
repr_list(self, x, level)
repr_set(self, x, level)
repr_str(self, x, level)
repr_tuple(self, x, level)

islice

islice(iterable, stop) --> islice object
islice(iterable, start, stop[, step]) --> islice object

Return an iterator whose next() method returns selected values from an
iterable.  If start is specified, will skip all preceding elements;
otherwise, start defaults to zero.  Step defaults to one.  If
specified as another value, step determines how many values are
skipped between successive calls.  Works like a slice() on a list
but returns an iterator.

Functions

get_ident

get_ident(...)

  get_ident() -> integer

  Return a non-zero integer that uniquely identifies the current thread
  amongst other threads that exist simultaneously.
  This may be used to identify per-thread resources.
  Even though on some platforms threads identities may appear to be
  allocated consecutive numbers starting at 1, this behavior should not
  be relied upon, and the number should be seen purely as a magic cookie.
  A thread's identity may be reused for another thread after it exits.

recursive_repr

recursive_repr(fillvalue='...')

  Decorator to make a repr function return fillvalue for a recursive call

repr

repr(x)

Other members

aRepr = <reprlib.Repr object at 0x7f75e3ba98a0>

Modules

builtins