Skip to content

Commit 9777010

Browse files
author
aviau
committed
ResultSet: Added __repr__
1 parent 7cc5cc7 commit 9777010

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

influxdb/resultset.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ def __getitem__(self, key):
6565
)
6666

6767
def __repr__(self):
68-
return str(self.raw)
68+
items = []
69+
70+
for item in self.items():
71+
items.append("'%s': %s" % (item[0], list(item[1])))
72+
73+
return "ResultSet({%s})" % ", ".join(items)
6974

7075
def __iter__(self):
7176
""" Iterating a ResultSet will yield one dict instance per serie result.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy