R. David Murray added the comment: The point is to make the API consistent. So if the other dbm modules raise an error when __setitem__/__delitem__ are called on an R/O db, then the warnings are appropriate (but should mention that this will be an error in the future).
The warnings will only be printed once per run of python, unless I'm completely misremembering how deprecation warnings work. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21708> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com