Message245375
| Author |
eric.smith |
| Recipients |
barry, eric.smith, ezio.melotti, mrabarnett, rhettinger, serhiy.storchaka |
| Date |
2015年06月15日.13:50:13 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1434376213.29.0.930620523236.issue24454@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I'd definitely be for mo['col']. I can't say I've ever used len(mo.groups()).
I do have lots of code like:
return mo.group('col'), mo.group('row'), mo.group('foo')
Using groupdict there is doable but not great. But:
return mo['col'], mo['row'], mo['foo']
would be a definite improvement. |
|