Serhiy Storchaka <[email protected]> added the comment:
It is also a good idea for linters to catch such kind of errors. It will help
users of older Python versions.
We cannot raise error without deprecation period or add warnings in old
versions because it potentially can break existing code, e.g.:
def test_ham(self, arg='ham'):
...
def test_spam(self):
res = test_ham('spam')
self.assertTrue(res)
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41322>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com