Author serhiy.storchaka
Recipients MizardX, ezio.melotti, moreati, mrabarnett, serhiy.storchaka, timehorse
Date 2014-08-01.11:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406892084.49.0.229264153825.issue9529@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-08-01 11:21:24serhiy.storchakasetrecipients: + serhiy.storchaka, timehorse, ezio.melotti, mrabarnett, moreati, MizardX
2014-08-01 11:21:24serhiy.storchakasetmessageid: <1406892084.49.0.229264153825.issue9529@psf.upfronthosting.co.za>
2014-08-01 11:21:24serhiy.storchakalinkissue9529 messages
2014-08-01 11:21:24serhiy.storchakacreate