def _get_name(self):
        """
        Dynamically defines new partition name depending on the partition subtype.
        """
        try:
            return getattr(self, '_get_{0}_name'.format(self.subtype))()
        except __HOLE__:
            import re
            expression = '_get_(\w+)_name'
            raise PartitionRangeSubtypeError(
                model=self.model.__name__,
                dialect=self.dialect,
                current=self.subtype,
                allowed=[re.match(expression, c).group(1) for c in dir(self) if re.match(expression, c) is not None])
dataset/ETHPy150Open maxtepkeev/architect/architect/databases/mysql/partition.py/RangePartition._get_name