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 serhiy.storchaka
Recipients ezio.melotti, larry, mrabarnett, ned.deily, rhettinger, serhiy.storchaka
Date 2016-10-16.20:51:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476651080.22.0.12991804058.issue14991@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch makes groupdict() without argument emitting FutureWarning if the result includes unmatched groups. Maybe warning message and the documentation could be better.

Ned, I ask your permission for including this change in 3.6. Yes, it can break third-party code that ran with -Werror, but I think groupdict() is rarely used in comparison of other match object API. The workaround is simple -- just use groupdict(None). The earlier we add a warning, the earlier we can change the behavior of groupdict(). If we did it in 3.4 (the time Raymond opened this issue), we could get new behavior in 3.7.
History
Date User Action Args
2016-10-16 20:51:20serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, larry, ned.deily, ezio.melotti, mrabarnett
2016-10-16 20:51:20serhiy.storchakasetmessageid: <1476651080.22.0.12991804058.issue14991@psf.upfronthosting.co.za>
2016-10-16 20:51:20serhiy.storchakalinkissue14991 messages
2016-10-16 20:51:20serhiy.storchakacreate