waxeye-org / waxeye

Waxeye is a parser generator based on parsing expression grammars (PEGs). It supports C, Java, JavaScript, Python, Racket, and Ruby.
https://waxeye-org.github.io/waxeye/index.html
Other
235 stars 38 forks source link

src/python/waxeye.py: Correctly look up keys in cache. #11

Closed ghost closed 9 years ago

ghost commented 9 years ago

Since Python 2.2, dict has supported the key in dict syntax for determining whether a key is present in the dict. Consequently, dict.has_key was removed in Python 3.0. This commit therefore permits waxeye to operate on Python 3.0+.

(Incidentally, I was surprised that this was the only impediment to using waxeye on Python 3.4...)

ghost commented 9 years ago

..On second thought, that other pull request does the same thing, and I hadn't even noticed it was there. Oops.