def _reserveObjs(self, args):
"""**Internal method**. Used to reserve a set of objects for this
macro"""
for obj in args:
# isiterable
if not type(obj) in map(type, ([], ())):
# if not operator.isSequenceType(obj) or type(obj) in
# types.StringTypes:
obj = (obj,)
for sub_obj in obj:
if isinstance(sub_obj, PoolElement):
self.addObj(sub_obj)
评论列表
文章目录