for line in open("python_yacc.py"): if line =~ m/def (?P<name>\w+) *(?P<args>\(.*\)) *:/: print repr($1), repr($args)
It got appreciative hisses when I did a lightning talk about it at a PyCon.
It got appreciative hisses when I did a lightning talk about it at a PyCon.