This method was lost in commit
abbebf8e.
name = "<unnamed>"
return "(rec {} {})".format(name, " ".join(fields))
+ def shape(self):
+ return self.as_value().shape()
+
def connect(self, *subordinates, include=None, exclude=None):
def rec_name(record):
if record.name is None:
self.assertIs(r.stb, ns)
self.assertIs(r.info, nr)
+ def test_shape(self):
+ r1 = Record([("a", 1), ("b", 2)])
+ self.assertEqual(r1.shape(), unsigned(3))
+
def test_like(self):
r1 = Record([("a", 1), ("b", 2)])
r2 = Record.like(r1)