def __init__(self, root_name, int_starts_with):
# dict of {'id': obj } for items to be evaluated eventually.
self.object_to_eval = weakref.WeakValueDictionary()
self.evaluated_items = {} # dict of {'path': evaluated object}
self.root_name = root_name
self.int_regex = re.compile('^{}([\d]+)$'.format(int_starts_with))
评论列表
文章目录