[Python-Dev] Re: Remove formatter module from Python 3.9, deprecated for 7 years (Python 3.4)

2020-01-17 Thread Gregory P. Smith
As another datapoint, in an internal codebase with a high XX million lines of Python code, I see a mere 7 uses. Most of which are in legacy things that would be trivial to use f-strings instead if the code doesn't just get deleted when the owners notice. :) (and my team is responsible for

[Python-Dev] Re: Remove formatter module from Python 3.9, deprecated for 7 years (Python 3.4)

2020-01-17 Thread Gregory P. Smith
+1 remove it to match that policy. I find it unlikely someone will ask for it to be restored, but our first response before doing so should be to see if they can instead use it as a dependency via PyPI: Someone who wants to maintain it for future use can take 3.8 formatter module and put it

[Python-Dev] Re: Remove formatter module from Python 3.9, deprecated for 7 years (Python 3.4)

2020-01-17 Thread Andrew Svetlov
I have no objections, the module raises the explicit deprecation warning since 2013. On Fri, Jan 17, 2020 at 7:31 PM Victor Stinner wrote: > > Hi, > > I proposed https://bugs.python.org/issue39352 to remove the formatter > module. It's deprecated since Python 3.4. The main reason why it's >

[Python-Dev] Summary of Python tracker Issues

2020-01-17 Thread Python tracker
ACTIVITY SUMMARY (2020-01-10 - 2020-01-17) Python tracker at https://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open7268 (+17) closed 43855 (+63) total 51123 (+80) Open issues

[Python-Dev] Remove formatter module from Python 3.9, deprecated for 7 years (Python 3.4)

2020-01-17 Thread Victor Stinner
Hi, I proposed https://bugs.python.org/issue39352 to remove the formatter module. It's deprecated since Python 3.4. The main reason why it's still around is the PEP 4 rule: "In order to facilitate writing code that works in both Python 2 & 3 simultaneously, any module that exists in both Python

[Python-Dev] Re: Questions about CPython's behavior on addition operator -- binary_op1 (abstract.c) and nb_add (typeobject.c)

2020-01-17 Thread Jeff Allen
On 16/01/2020 11:27, Raphaƫl Monat wrote: Hi all, I'm looking at CPython's behavior when an addition is called. From what I understand, binary_op1 is eventually called, and it calls either slotv or slotw, which seems to be