Issue 18716: Deprecate the formatter module (original) (raw)

Created on 2013-08-12 19:16 by brett.cannon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
deprecate_formatter.diff brett.cannon,2013-08-12 19:16 review
Messages (11)
msg194989 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-08-12 19:16
Turns out the formatter module isn't really used by anyone. Pydoc uses it, but it could easily use textwrap. Searching on Github shows a usage by someone who simply re-exposes it as part of their own public API but has no actual usage themselves (https://github.com/search?q=%22import+formatter%22&ref=searchresults&type=Code and https://github.com/search?q=%22from+formatter%22&type=Code&ref=searchresults) . A Google search only turns up references in books (https://www.google.ca/search?{google:acceptedSuggestion}oq=%22import+formatter%22&{google:instantFieldTrialGroupParameter}sourceid=chrome&ie=UTF-8&q=%22import+formatter%22&qscrl=1#bav=on.2,or.r_cp.r_qf.&fp=7bfd11bde90d01cb&q=%22import+formatter%22+OR+%22from+formatter%22&qscrl=1). The attached patch deprecated formatter for removal in Python 3.6.
msg194995 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2013-08-12 19:35
+1
msg197651 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-09-13 20:44
Making a deferred blocker to make sure I get around to deprecating before b1.
msg198956 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-10-04 15:39
New changeset 04ff1cc40d62 by Brett Cannon in branch 'default': Issue #18716: Deprecate the formatter module http://hg.python.org/cpython/rev/04ff1cc40d62
msg199312 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-10-09 16:54
Need to add a note to PEP 4.
msg200278 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-10-18 15:49
Documented in f1fde6ef92e2
msg204885 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2013-12-01 05:29
formatter module is used by (Python-3-compatible) Portage (package manager for Gentoo): http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=summary Maybe deprecation should be reverted.
msg204886 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2013-12-01 05:36
They're not on Python 3. I think we should keep the deprecation and let them roll their own when they upgrade. It's not like the module provides much functionality in the first place.
msg204938 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-12-01 15:46
On Sun, Dec 1, 2013 at 12:36 AM, Larry Hastings <report@bugs.python.org>wrote: > > Larry Hastings added the comment: > > They're not on Python 3. I think we should keep the deprecation and let > them roll their own when they upgrade. It's not like the module provides > much functionality in the first place. > What Larry said. =) Plus a single user in the world is not enough to warrant keeping a module. The code is simple enough that if they want to keep it they can simply copy it into their own code.
msg289661 - (view) Author: Jim Fasarakis-Hilliard (Jim Fasarakis-Hilliard) * Date: 2017-03-15 10:11
Just bumped into this. Is the removal for this module waiting for the end of Python 2.7 support as PEP 4 states for modules in Py2 and Py3? The first message calls for a removal in 3.6 so, I'm either missing some additional conversations on this or this might of just have been forgotten.
msg289686 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2017-03-15 18:22
Yes, the code won't be deleted until we're in a post-2.7 world.
History
Date User Action Args
2022-04-11 14:57:49 admin set github: 62916
2017-03-15 18:22:46 brett.cannon set messages: +
2017-03-15 10:11:17 Jim Fasarakis-Hilliard set nosy: + Jim Fasarakis-Hilliardmessages: +
2013-12-06 15:19:05 brett.cannon set status: open -> closedresolution: fixed
2013-12-01 15:46:29 brett.cannon set messages: +
2013-12-01 05:36:11 larry set messages: +
2013-12-01 05:29:03 Arfrever set status: closed -> opennosy: + Arfrevermessages: + resolution: fixed -> (no value)stage: resolved ->
2013-10-18 15:49:40 brett.cannon set status: open -> closedmessages: +
2013-10-09 16:54:41 brett.cannon link issue19165 dependencies
2013-10-09 16:54:30 brett.cannon set status: closed -> openmessages: +
2013-10-04 15:39:45 brett.cannon set status: open -> closedresolution: fixedstage: test needed -> resolved
2013-10-04 15:39:10 python-dev set nosy: + python-devmessages: +
2013-09-13 20:44:28 brett.cannon set priority: normal -> deferred blockermessages: +
2013-08-16 19:44:01 tshepang set nosy: + tshepang
2013-08-12 19:35:06 larry set nosy: + larrymessages: +
2013-08-12 19:33:50 ezio.melotti set nosy: + ezio.melotti
2013-08-12 19:23:36 brett.cannon set assignee: brett.cannon
2013-08-12 19:16:08 brett.cannon create