Part of bzrlib
This module defines a class which creates proxy objects for regex compilation. This allows overriding re.compile() to return lazily compiled objects.
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 26 | Class | LazyRegex | A proxy around a real regex, which won't be compiled until accessed. |
| 75 | Function | lazy_compile | Create a proxy object which will compile the regex on demand. |
| 83 | Function | install_lazy_compile | Make lazy_compile the default compile mode for regex compilation. |
| 92 | Function | reset_compile | Restore the original function to re.compile(). |
| Returns | a LazyRegex proxy object. | |