Changes between Initial Version and Version 1 of Ticket #22943, comment 4
- Timestamp:
- Jul 3, 2014, 4:06:24 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22943, comment 4
initial v1 1 1 You might have to rely on ducktyping to implement the first option since [http://stackoverflow.com/questions/6226180/detect-re-regexp-object-in-python it seems there's no way to reliably detect that a given object is a compiled pattern]. 2 3 Edit: `compiled_re_type = type(re.compile(''))` should work.