Python 3.11 marks "mailcap" for removal in 3.13. The
documentation speaks about "mimetypes" being a replacement,
of sorts.
However, I can't really see how "mimetypes" helps in
replacing the functionality of "mailcap".
Put another way: what is the suggested way of replacing that
module in existing code ? The use case is "find the viewer
for any kind of file (mimetype), as long as the system
knows".
Python 3.11 marks "mailcap" for removal in 3.13. The
documentation speaks about "mimetypes" being a replacement,
of sorts.
However, I can't really see how "mimetypes" helps in
replacing the functionality of "mailcap".
Put another way: what is the suggested way of replacing that
module in existing code ? The use case is "find the viewer
for any kind of file (mimetype), as long as the system
knows".
Given this decision has been made at the upstream python level, you
should be asking on their support channel how they plan for current
code migration (which is 2 years away).
https://www.python.org/about/help/ could be a good start.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 349 |
Nodes: | 16 (2 / 14) |
Uptime: | 116:02:18 |
Calls: | 7,612 |
Files: | 12,786 |
Messages: | 5,683,796 |