Matthew Barnett <pyt...@mrabarnett.plus.com> added the comment: The re module creates the dict purely for the benefit of the user, and as it's a normal dict, it's mutable.
An alternative would to use an immutable dict or dict-like object, but Python doesn't have such a class, and it's probably not worth writing one just for this use-case. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com