# Path: yaya/common/enum.py
# class Enum(object):
#     """ Enumerated type. """
# 
#     def __init__(self, *keys, **kwargs):
#         """ Create an enumeration instance. """
# 
#         value_type = kwargs.get('value_type', EnumValue)
#         enum_name = kwargs.get('enum_name', None)
#         assert enum_name is not None
#         self.__dict__['enum_name'] = enum_name
#         if not keys:
#             raise EnumEmptyError()
# 
#         keys = tuple(keys)
#         values = [None] * len(keys)
# 
#         for i, key in enumerate(keys):
#             value = value_type(self, i, key)
#             values[i] = value
#             try:
#                 super(Enum, self).__setattr__(key, value)
#             except TypeError:
#                 raise EnumBadKeyError(key)
# 
#         self.__dict__['_keys'] = keys
#         self.__dict__['_values'] = values
# 
#     def __setattr__(self, name, value):
#         raise EnumImmutableError(name)
# 
#     def __delattr__(self, name):
#         raise EnumImmutableError(name)
# 
#     def __len__(self):
#         return len(self._values)
# 
#     def __getitem__(self, index):
#         # tony 添加，添加从字符型枚举名到变量值的转换
#         if isinstance(index, str) or isinstance(index, unicode) :
#             return self.__getattribute__(index)
#         else:
#             return self._values[index]
# 
#     def __setitem__(self, index, value):
#         raise EnumImmutableError(index)
# 
#     def __delitem__(self, index):
#         raise EnumImmutableError(index)
# 
#     def __iter__(self):
#         return iter(self._values)
# 
#     def __contains__(self, value):
#         is_member = False
#         if isinstance(value, basestring):
#             is_member = (value in self._keys)
#         else:
#             is_member = (value in self._values)
#         return is_member


from yaya.common.enum import Enum
    # 	Ps	单名	张【浩】说：“我是一个好人”

    'E',

    # 	Ppf	前缀	【老】刘、【小】李

    'F',

    # 	Plf	后缀	王【总】、刘【老】、肖【氏】、吴【妈】、叶【帅】

    'G',

    # 	Pp	人名的上文	又【来到】于洪洋的家。

    'K',

    # 	Pn	人名的下文	新华社记者黄文【摄】

    'L',

    # 	Ppn	两个中国人名之间的成分	编剧邵钧林【和】稽道青说

    'M',

    # 	Ppf	人名的上文和姓成词	这里【有关】天培的壮烈

    'U',

    # 	Pnw	三字人名的末字和下文成词	龚学平等领导, 邓颖【超生】前


# Path: yaya/common/enum.py
# class Enum(object):
#     """ Enumerated type. """
# 
#     def __init__(self, *keys, **kwargs):
#         """ Create an enumeration instance. """
# 
#         value_type = kwargs.get('value_type', EnumValue)
#         enum_name = kwargs.get('enum_name', None)
#         assert enum_name is not None
#         self.__dict__['enum_name'] = enum_name
#         if not keys:
#             raise EnumEmptyError()
# 
#         keys = tuple(keys)
#         values = [None] * len(keys)
# 
#         for i, key in enumerate(keys):
#             value = value_type(self, i, key)
#             values[i] = value
#             try:
#                 super(Enum, self).__setattr__(key, value)
#             except TypeError:
#                 raise EnumBadKeyError(key)
# 
#         self.__dict__['_keys'] = keys
#         self.__dict__['_values'] = values
# 
#     def __setattr__(self, name, value):
#         raise EnumImmutableError(name)
# 
#     def __delattr__(self, name):
#         raise EnumImmutableError(name)
# 
#     def __len__(self):
#         return len(self._values)
# 
#     def __getitem__(self, index):
#         # tony 添加，添加从字符型枚举名到变量值的转换
#         if isinstance(index, str) or isinstance(index, unicode) :
#             return self.__getattribute__(index)
#         else:
#             return self._values[index]
# 
#     def __setitem__(self, index, value):
#         raise EnumImmutableError(index)
# 
#     def __delitem__(self, index):
#         raise EnumImmutableError(index)
# 
#     def __iter__(self):
#         return iter(self._values)
# 
#     def __contains__(self, value):
#         is_member = False
#         if isinstance(value, basestring):
#             is_member = (value in self._keys)
#         else:
#             is_member = (value in self._values)
#         return is_member


# Path: yaya/common/nr.py
from yaya.common.enum import Enum

    # 	Ps	单名	张【浩】说：“我是一个好人”

    'E',

    # 	Ppf	前缀	【老】刘、【小】李

    'F',

    # 	Plf	后缀	王【总】、刘【老】、肖【氏】、吴【妈】、叶【帅】

    'G',

    # 	Pp	人名的上文	又【来到】于洪洋的家。

    'K',

    # 	Pn	人名的下文	新华社记者黄文【摄】

    'L',

    # 	Ppn	两个中国人名之间的成分	编剧邵钧林【和】稽道青说

    'M',

    # 	Ppf	人名的上文和姓成词	这里【有关】天培的壮烈

    'U',

    # 	Pnw	三字人名的末字和下文成词	龚学平等领导, 邓颖【超生】前


    'V',