On this page
  1. reprlib.repr
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

reprlib.repr

Prev: reprlib.recursive_repr | Up: reprlib | Next: reprlib.Repr
Rel: reprlib.recursive_repr, reprlib.Repr
Ref: docs.python.org — reprlib.repr
Tags: #public #python3 #stdlib #reprlib


Import

import reprlib
from reprlib import repr

Signature & Overview

reprlib.repr(x)

reprlib.repr() function.

Usage

import reprlib

assert reprlib.repr(list(range(100))) == '[0, 1, 2, 3, 4, 5, ...]'

Gotchas

REPL Inspect

from reprlib import repr
help(repr)

Linked from

Related notes