Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14556 > unrolled thread

module mailcap to be removed -- how to replace ?

Started byKarsten Hilbert <Karsten.Hilbert@gmx.net>
First post2022-10-26 20:40 +0200
Last post2022-10-26 21:00 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.debian.maint.python


Contents

  module mailcap to be removed -- how to replace ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2022-10-26 20:40 +0200
    Re: module mailcap to be removed -- how to replace ? Sandro Tosi <morph@debian.org> - 2022-10-26 20:50 +0200
      Re: module mailcap to be removed -- how to replace ? Karsten Hilbert <Karsten.Hilbert@gmx.net> - 2022-10-26 21:00 +0200

#14556 — module mailcap to be removed -- how to replace ?

FromKarsten Hilbert <Karsten.Hilbert@gmx.net>
Date2022-10-26 20:40 +0200
Subjectmodule mailcap to be removed -- how to replace ?
Message-ID<FkTtL-gU8r-7@gated-at.bofh.it>
Dear list,

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".

Thanks,
Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B

[toc] | [next] | [standalone]


#14557

FromSandro Tosi <morph@debian.org>
Date2022-10-26 20:50 +0200
Message-ID<FkTDr-gUbF-5@gated-at.bofh.it>
In reply to#14556
> 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.

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
Twitter: https://twitter.com/sandrotosi

[toc] | [prev] | [next] | [standalone]


#14558

FromKarsten Hilbert <Karsten.Hilbert@gmx.net>
Date2022-10-26 21:00 +0200
Message-ID<FkTN8-gUeP-9@gated-at.bofh.it>
In reply to#14557
Am Wed, Oct 26, 2022 at 02:47:31PM -0400 schrieb Sandro Tosi:

> > 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.

Thanks and sorry for the noise. Wrong list on my part ...

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web