python-lastfm/lastfm/base.py

22 lines
648 B
Python
Raw Normal View History

2008-07-15 00:38:39 +05:30
#!/usr/bin/env python
"""Module containting the base class for all the classes in this package"""
2008-07-15 00:38:39 +05:30
__author__ = "Abhinav Sarkar <abhinav@abhinavsarkar.net>"
__version__ = "0.2"
2008-07-15 00:38:39 +05:30
__license__ = "GNU Lesser General Public License"
__package__ = "lastfm"
2008-07-15 00:38:39 +05:30
class LastfmBase(object):
"""Base class for all the classes in this package"""
2008-07-15 00:38:39 +05:30
def __gt__(self, other):
return not (self.__lt__(other) or self.__eq(other))
2008-07-15 00:38:39 +05:30
def __ne__(self, other):
return not self.__eq__(other)
2008-07-15 00:38:39 +05:30
def __ge__(self, other):
return not self.__lt__(other)
2008-07-15 00:38:39 +05:30
def __le__(self, other):
return not self.__gt__(other)