2008-07-15 00:38:39 +05:30
|
|
|
#!/usr/bin/env python
|
2009-03-10 11:39:11 +05:30
|
|
|
"""Module containting the base class for all the classes in this package"""
|
2008-07-15 00:38:39 +05:30
|
|
|
|
2008-08-25 17:14:48 +05:30
|
|
|
__author__ = "Abhinav Sarkar <abhinav@abhinavsarkar.net>"
|
2008-09-02 22:06:16 +05:30
|
|
|
__version__ = "0.2"
|
2008-07-15 00:38:39 +05:30
|
|
|
__license__ = "GNU Lesser General Public License"
|
2009-03-17 20:51:40 +05:30
|
|
|
__package__ = "lastfm"
|
2008-07-15 00:38:39 +05:30
|
|
|
|
|
|
|
class LastfmBase(object):
|
|
|
|
"""Base class for all the classes in this package"""
|
2008-08-18 18:49:41 +05:30
|
|
|
|
2008-07-15 00:38:39 +05:30
|
|
|
def __gt__(self, other):
|
|
|
|
return not (self.__lt__(other) or self.__eq(other))
|
2008-08-18 18:49:41 +05:30
|
|
|
|
2008-07-15 00:38:39 +05:30
|
|
|
def __ne__(self, other):
|
|
|
|
return not self.__eq__(other)
|
2008-08-18 18:49:41 +05:30
|
|
|
|
2008-07-15 00:38:39 +05:30
|
|
|
def __ge__(self, other):
|
|
|
|
return not self.__lt__(other)
|
2008-08-18 18:49:41 +05:30
|
|
|
|
2008-07-15 00:38:39 +05:30
|
|
|
def __le__(self, other):
|
2009-03-10 11:39:11 +05:30
|
|
|
return not self.__gt__(other)
|