Currently, two Trends containing the same information (name, query, and
timestamp) aren't considered equal because __eq__ isn't overridden, like it is
for Status, User, and the other Twitter objects.
Currently:
>>> from twitter import Trend
>>> trend = Trend(name='foo', query='bar', timestamp='baz')
>>> trend2 = Trend(name='foo', query='bar', timestamp='baz')
>>> trend == trend2
False
>>>
After this patch:
>>> from twitter import Trend
>>> trend = Trend(name='foo', query='bar', timestamp='baz')
>>> trend2 = Trend(name='foo', query='bar', timestamp='baz')
>>> trend == trend2
True
>>> trend3 = Trend(name='baz', query='quux')
>>> trend == trend3
False
>>>
Original issue reported on code.google.com by jessica....@gmail.com on 27 Nov 2011 at 1:25
Original issue reported on code.google.com by
jessica....@gmail.com
on 27 Nov 2011 at 1:25Attachments: