Message224486
I think MizardX means that match object should be iterable. This will allow sequence unpacking.
>>> import re
>>> m = re.match(r'(\w+):(\w+)', 'qwerty:asdfgh')
>>> k, v = m
>>> k
'qwerty'
>>> v
'asdfgh'
This idea looks reasonable to me. Here is simple preliminary patch which implements it. |
|
Date |
User |
Action |
Args |
2014-08-01 11:21:24 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, timehorse, ezio.melotti, mrabarnett, moreati, MizardX |
2014-08-01 11:21:24 | serhiy.storchaka | set | messageid: <1406892084.49.0.229264153825.issue9529@psf.upfronthosting.co.za> |
2014-08-01 11:21:24 | serhiy.storchaka | link | issue9529 messages |
2014-08-01 11:21:24 | serhiy.storchaka | create | |
|