From 8f6ff20e6ac34b0856df3a2459e9f0ad58e20b40 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Fri, 21 Dec 2012 17:07:56 -0500 Subject: [PATCH] Adds a __repr__ method for Event. --- zipline/protocol.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zipline/protocol.py b/zipline/protocol.py index 53c8a303..184988ec 100644 --- a/zipline/protocol.py +++ b/zipline/protocol.py @@ -45,3 +45,6 @@ class Event(object): def __eq__(self, other): return self.__dict__ == other.__dict__ + + def __repr__(self): + return "Event({0})".format(self.__dict__)