All pastes #87762 Raw Edit

freeone3000

public python v1 · immutable
·published 2006-07-14 05:17 UTC
rendered paste body
def __init__(self, name="Legolas10921", skills={"attack": 3, "defence": 3, "harvesting": 0, 'alchemy': 0, 'magic': 0, 'potion': 0}):		"""Creates a new player card.		Takes two argument - the name, and then the skills in a dictionary "attack", "defence", "harvesting",		"alchemy", "magic", and "potion". Their values must be integers, or be able to be		added and multiplied by integers."""		super(player_card, self).__init__(name, True)===Traceback (most recent call last):  File "elcards.py", line 26, in ?    c = card.player_card()  File "/home/james/develop/elcards/card.py", line 62, in __init__    super(player_card, self).__init__(name, True)TypeError: super() argument 1 must be type, not classobj