ref #48. makes Dataset more like a duck with extend()

This commit is contained in:
mellort
2012-01-28 01:17:15 -05:00
parent 7c963a0f4d
commit 54affad292
+8
View File
@@ -597,6 +597,14 @@ class Dataset(object):
self.rpush(row, tags)
def extend(self, rows, tags=list()):
"""Adds a list of rows to the :class:`Dataset` using
:class:`Dataset.append`
"""
for row in rows:
self.append(row, tags)
def lpop(self):
"""Removes and returns the first row of the :class:`Dataset`."""