Skip to content

Commit 2640983

Browse files
committed
Merge pull request nathanmarz#20 from twpayne/python-debug-support
Add Tuple.__repr__ to Python library
2 parents 3226a1c + 31f06a9 commit 2640983

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/multilang/py/storm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ def __init__(self, id, component, stream, task, values):
9797
self.task = task
9898
self.values = values
9999

100+
def __repr__(self):
101+
return '<%s%s>' % (
102+
self.__class__.__name__,
103+
''.join(' %s=%r' % (k, self.__dict__[k]) for k in sorted(self.__dict__.keys())))
104+
100105
class Bolt:
101106
def initialize(self, stormconf, context):
102107
pass

0 commit comments

Comments
 (0)