Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
And this case looks like playing with implementation details. The official way to make the specified warning emitted more than once is to use warnings.filterwarnings(): >>> import warnings >>> warnings.filterwarnings('always', "NOBODY expects the Spanish >>> Inquisition!", UserWarning) >>> warnings.warn("NOBODY expects the Spanish Inquisition!") <stdin>:1: UserWarning: NOBODY expects the Spanish Inquisition! >>> warnings.warn("NOBODY expects the Spanish Inquisition!") <stdin>:1: UserWarning: NOBODY expects the Spanish Inquisition! ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34948> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com