tags:

views:

125

answers:

2
+2  A: 
class Suite(object): pass

class Heart(Suite): pass
class Club(Suite): pass

etc.

A class in python is an object. So you can write

x=Heart

etc.

snakile
+1  A: 

here is very same popular question on stackoverflow

Edit:

class Suite(set):
    def __getattr__(self, name):
        if name in self:
            return name
        raise AttributeError

s1 = Suite(['Heart', 'Club', 'Spade', 'Diamond'])
s1.Heart
Tumbleweed
down vote retracted.
Amir Rachum