[Python-Dev] Re: When to remove BytesWarning?
> I'm quite sure that almost nobody uses -b or -bb when running their test suite or to develop I noticed this thread and just thought I'd give one example of someone who does use -bb: https://github.com/johnthagen/python-blueprint/blob/210b89fe011d172104e9f1ba2553e4245f76a77b/tox.ini#L44 I admit I am in a very small minority however. That being said, I have discovered a few minor bugs in my code or in third party libraries over the years using -bb. But I would understand still wanting to remove this feature to lower maintenance burden. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/QZYDKPEDN6FKJ4ZRPOUS6D6HACCGMW7O/ Code of Conduct: http://python.org/psf/codeofconduct/
[Python-Dev] Re: When to remove BytesWarning?
If I recall, it was str(bytes) warning that flagged in a few places and was missing a .decode() call or similar. It seems like the bytes== warnings could be implemented in a type checker such as mypy, if it doesn't already do this. Assuming you have correct type coverage/inference on your project, you could potentially catch this at static analysis time rather than runtime. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/SN2HQG6KQGGQB2SOF2NKCIWQVF6UWKKU/ Code of Conduct: http://python.org/psf/codeofconduct/