MCPcopy Create free account
hub / github.com/numpy/numpy / __repr__

Method __repr__

tools/npy_tempita/__init__.py:419–425  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

417 return dict.__getitem__(self, key)
418
419 def __repr__(self):
420 items = [
421 (k, v) for k, v in iteritems(self)]
422 items.sort()
423 return '<%s %s>' % (
424 self.__class__.__name__,
425 ' '.join(['%s=%r' % (k, v) for k, v in items]))
426
427############################################################
428# HTML Templating

Callers

nothing calls this directly

Calls 3

iteritemsFunction · 0.85
sortMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected