Skip to content

Instantly share code, notes, and snippets.

@tonyseek
Created September 14, 2017 08:41
Show Gist options
  • Save tonyseek/5342c4dc33cdba4cd8d119a93846c6e6 to your computer and use it in GitHub Desktop.
Save tonyseek/5342c4dc33cdba4cd8d119a93846c6e6 to your computer and use it in GitHub Desktop.
import operator
class Node(tuple):
path = property(operator.itemgetter(0))
data = property(operator.itemgetter(1))
stat = property(operator.itemgetter(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment