| 310 | return repr |
| 311 | |
| 312 | def format(self, object, context, maxlevels, level, enable_pickle=None): |
| 313 | if enable_pickle is None: |
| 314 | enable_pickle = self.enable_pickle |
| 315 | """Format object for a specific context, returning a string |
| 316 | and flags indicating whether the representation is 'readable' |
| 317 | and whether the object represents a recursive construct. |
| 318 | """ |
| 319 | return _safe_repr(object, context, maxlevels, level, enable_pickle=enable_pickle) |
| 320 | |
| 321 | |
| 322 | # Return triple (repr_string, isreadable, isrecursive). |