News for hackers. Stuff that matters.
Re:Why Python 4.0 might never arrive, according to its creator by LeifCarrotson on Thursday June 03, 2021 @10:40AM (#27382086)
Python isn't strongly typed. You got an integer floor operation with -3 / 2 = -2, but -3.2 / 2 = -1.6. This led to errors when floats were expected but integers were possible among your inputs.

In Python 3, it always gives a floating-point result. You can use a floor division operator if you want to round everything (including integers) towards negative infinity.

See https://www.python.org/dev/peps/pep-0238/ for details.

Re:Why Python 4.0 might never arrive, according to its creator by leephillips on Thursday June 03, 2021 @12:57PM (#27384134)
Python is strongly typed, and your examples show the strong (dynamic) type system in action. An example of a language that is not strongly typed would be Javascript, where you can do 1 + "1". In Python, that gets you a typeerror, because Python is strongly typed.
Re:Why Python 4.0 might never arrive, according to its creator by LeifCarrotson on Thursday June 03, 2021 @01:26PM (#27384546)
Sorry, you're right, it's strongly typed but it is not statically typed.