lpeg.P(func) "returns a pattern equivalent to a match-time capture over the empty string". PPeg throws an exception
>>> from _ppeg import Pattern as P
>>> P(str)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Pattern argument must be None, or convertible to a string or an integer
lpeg.P(func)
"returns a pattern equivalent to a match-time capture over the empty string". PPeg throws an exception