repr function

String repr(
  1. PyObject object
)

Python repr(object), copied into a Dart string.

Implementation

String repr(PyObject object) => using((scope) {
  final result = scope(
    PyObject.fromHandle(checked(() => api.PyObject_Repr(object.ptr))),
  );
  return result.asString();
});