Serhiy Storchaka added the comment: 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. ---------- keywords: +patch nosy: +ned.deily stage: needs patch -> patch review Added file: http://bugs.python.org/file45120/re_groupdict_no_default_future_warning.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14991> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com