Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- ~/Python $ python re_test_patterns2.py
- Pattern 'ab' ('a' followed by 'b')
- 'abbaaabbbbaaaaa'
- Traceback (most recent call last):
- File "re_test_patterns2.py", line 29, in <module>
- [('ab', "'a' followed by 'b'"),
- File "re_test_patterns2.py", line 19, in test_patterns
- print ' %s%r' % (prefix, text[s:e], ' ' * (len(text) - e)),
- TypeError: not all arguments converted during string formatting
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement