Hacker News new | ask | show | jobs
by theelous3 2182 days ago
Is it not more of an

all(hasattr(node, attr) for attr in attrs))

than the ==