Changes between Initial Version and Version 1 of Ticket #22943, comment 4


Ignore:
Timestamp:
Jul 3, 2014, 4:06:24 PM (10 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22943, comment 4

    initial v1  
    11You 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
     3Edit: `compiled_re_type = type(re.compile(''))` should work.
Back to Top