Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """ exception thrown on re_groups_named.py
- [Pymode] Found errors and warnings: 0
- rfmonk@trotsky
- ~/Python $ python re_groups_named.py
- This is some text -- with punctuation.
- Matching "^(?P<first_word>\w+)"
- ('This',)
- {'first_word': 'This'}
- Matching "(?P<last_word>\w+)\S*$"
- ('punctuation',)
- {'last_word': 'punctuation'}
- Matching "(?P<t_word>\bt\w+)\W(?P<other_word>\w+)"
- Traceback (most recent call last):
- File "re_groups_named.py", line 19, in <module>
- print ' ', match.groups()
- AttributeError: 'NoneType' object has no attribute 'groups'
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement