As stated above, your types of voice, place, and type are simply enumerated types. There are several ways to implement features such as
class voice(object):
Voiced, Voiceless = range(2)
Then you can turn to the voice. Vocal and voice. Untimely, etc.
, . C - . - python . , . - Vowel Consonant. ++ - Vowel Consonant; python , , , , .
,
class Vowel(object):
def SomeInitialMethod(self):
class Consonant(object):
def SomeInitialMethod(self):
p.SomeInitialMethod()
def SomeLaterFunction(p)
if isinstance(p, Vowel):
elif isinstance(p, Consonant):