Skip to content

Instantly share code, notes, and snippets.

@daeken
Created December 9, 2010 05:38
Show Gist options
  • Save daeken/734374 to your computer and use it in GitHub Desktop.
Save daeken/734374 to your computer and use it in GitHub Desktop.
from pypattern import *
if _((_.a, _.b)).match(('foo', 'bar')):
print a, b
if _(hax=_.bar).match({'hax' : 'zomg'}):
print bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment