I have a class like this:
class Eggs:
def __init__(self):
pass
def Spam(self):
print "spamming object"
@staticmethod
def Spam():
print "spamming class"
The problem I have is that when I create an object of the Eggs class, call it x
and call x.Spam()
I get the output spamming class
instead of spamming object
. I'm not sure why this is happening because the definition was pretty clear. I've looked through Python's docs and this website but haven't found any fixes. Anyone have any ideas?