introduced std library tests (only regex for now) and a working _sre mixin, which is used by the module

This commit is contained in:
David Halter committed 2012-09-04 15:59:24 +02:00
1 parent f47ae1ad4f
commit 778899af86
2 files changed
+119

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
"""
std library stuff
"""
# -----------------
# re
# -----------------
import re
c = re.compile(r'a')
#? int()
c.match().start()
#? int()
re.match(r'a', 'a').start()
#? int()
next(re.finditer('a', 'a')).start()
#? str()
re.sub('a', 'a')