[New-bugs-announce] [issue39352] Remove the formatter module, deprecated since Python 3.4
report at bugs.python.org
Thu Jan 16 03:48:01 EST 2020
New submission from STINNER Victor <vstinner at python.org>:
The formatter module has been deprecated in Python 3.4 by bpo-18716: commit 1448ecf470013cee63c0682f615c5256928dc6b0.
In 2014, its removal was scheduled in Python 3.6: commit 29636aeaccaf6a1412e0dc7c230db29cccf68381.
But bpo-25407 cancelled the removal from Python 3.6: commit 5ad5a7d31f5328c73df523b6ade330d88573717e
"The new PEP 4 policy of any module existing in both 2.7 and 3.5 applies here, hence the module will be with us for a bit longer."
In the meanwhile, I'm not aware of anyone opposed to the removal.
Python 2.7 reached it's end of life, so I propose to remove the module:
If someone needs this module, it's a single formatter.py file: it can easily be copied from Python 3.8. The intent here is to reduce the size of the standard library to remove the maintenance burden on Python core developers.
Note: I'm surprised, but it seems like the formatter module has no test!?
Attached PR removes the module.
components: Library (Lib)
nosy: brett.cannon, vstinner
title: Remove the formatter module, deprecated since Python 3.4
versions: Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce