def __contains__(self, expr):
"""Implement membership test operator.
Return true if expr matches a packet in the trace file,
false otherwise.
The packet is also stored in the object attribute pkt.
Examples:
# Find the next READ request
if ("NFS.argop == 25" in x):
print x.pkt.nfs
See match() method for more information
"""
pkt = self.match(expr)
return (pkt is not None)
评论列表
文章目录