When to remove BytesWarning?
24 Oct
2020
24 Oct
'20
6:19 a.m.
Hi, all.
To avoid BytesWarning, the compiler needs to do some hack when they
need to store bytes and str constants in one dict or set.
BytesWarning has maintenance costs. It is not huge, but significant.
When can we remove it? My idea is:
3.10: Deprecate the -b option.
3.11: Make the -b option no-op. Bytes warning never emits.
3.12: Remove the -b option.
BytesWarning will be deprecated in the document, but not to be removed.
Users who want to use the -b option during 2->3 conversion need to use
Python ~3.10 for a while.
Regards,
--
Inada Naoki
1254
Age (days ago)
1272
Last active (days ago)
12 comments
6 participants
participants (6)
-
Christian Heimes
-
Inada Naoki
-
John Hagen
-
Senthil Kumaran
-
Serhiy Storchaka
-
Victor Stinner