This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mrabarnett
Recipients barry, eric.smith, ezio.melotti, mrabarnett, rhettinger, serhiy.storchaka
Date 2015-06-15.14:14:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434377640.85.0.637613890789.issue24454@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that it would be nice if len(mo) == len(mo.groups()), but Serhiy has explained why that's not the case in the regex module.

The regex module does support mo[name], so:

  print('Located coordinate at (%(row)s, %(col)s)' % mo)
  print('Located coordinate at ({row}, {col})'.format_map(mo))

already work.
History
Date User Action Args
2015-06-15 14:14:00mrabarnettsetrecipients: + mrabarnett, barry, rhettinger, eric.smith, ezio.melotti, serhiy.storchaka
2015-06-15 14:14:00mrabarnettsetmessageid: <1434377640.85.0.637613890789.issue24454@psf.upfronthosting.co.za>
2015-06-15 14:14:00mrabarnettlinkissue24454 messages
2015-06-15 14:14:00mrabarnettcreate