Module club :: Class Club
[hide private]
[frames] | no frames]

Class Club

source code

object --+
         |
        Club

The class Club represents football clubs in a match statistics system. Only some very basic information for each club is recorded. A club object is immutable once created.

Instance Methods [hide private]
 
__init__(self, name, stadium)
Creates a new club with the given basic information.
source code
 
get_name(self)
Returns the name of the club.
source code
 
get_stadium(self)
Returns the home stadium of the club.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, stadium)
(Constructor)

source code 

Creates a new club with the given basic information.

Parameters:
  • name - the name of the club
  • stadium - the home stadium of the club
Overrides: object.__init__

get_name(self)

source code 

Returns the name of the club.

Returns:
club name

get_stadium(self)

source code 

Returns the home stadium of the club.

Returns:
home stadium