03.12.19 19:31, Guido van Rossum пише:
I think it’s too soon to worry about this. I don’t see a reason to harass people who maintain code based that were just recently migrated.
Yes, I also think that it is too early to deprecate it just now. Python 2 is not completely dead yet. But I would happy to know some estimated terms.
BTW, BytesWarning and the -b option also are only needed for programs ported from Python 2. This great feature helps to catch some porting errors, but makes the pure Python 3 code more cumbersome and less efficient. For example, you can't use just `name[0] in ('.', b'.')`, you have to perform the `isinstance(name, bytes)` check first, and you can't use the same cache for string and bytes keys (you have to use `(type(key), key)` as a key).
_______________________________________________ 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/XHNXDQYOR7C45ESI54UX46AY3M75HNSN/ Code of Conduct: http://python.org/psf/codeofconduct/