Jeremy> I'd put this at the module level: Jeremy> compiled_re_type = type(re.compile("")) Jeremy> Then you can use isistance() to test: Jeremy> isinstance(re.compile("spam+"), compiled_re_type) But is it guaranteed that re.compile will always yield an object of the same type?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4