Skip to content

Commit f192efa

Browse files
committed
Document LazyReCompile
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 907473b commit f192efa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpython/lazyre.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424

2525

2626
class LazyReCompile(object):
27+
"""Compile regular expressions on first use
28+
29+
This class allows to store regular expressions and compiles them on first
30+
use."""
2731

2832
def __init__(self, regex, flags=0):
2933
self.regex = regex

0 commit comments

Comments
 (0)