News for hackers. Stuff that matters.
Re:Why Python 4.0 might never arrive, according to its creator by AnIdiotOnTheNet on Thursday June 03, 2021 @10:32AM (#27381952)
Unless you come from a programming background where floor behavior is expected for integers, it was strange.

In Python 2: 20 / 15 = 1

In Python 3: 20 / 15 = 1.3333333333333333

To get the old behavior a new operator was added "//"

Re:Why Python 4.0 might never arrive, according to its creator by guenthert on Thursday June 03, 2021 @01:16PM (#27384390)
> Unless you come from a programming background where floor behavior is expected for integers, it was strange.

In all fairness, the C/C++ and Java communities were and are quite substantial.

Of course the rest of us ought to expect 4/3 as the result of 20/15 ;-)