News for hackers. Stuff that matters.
Re:In CPython, types implemented in C are part of the type tree by nicoburns on Thursday December 24, 2020 @06:46PM (#25532736)
Python isn't only unwieldly because of dyanamic typing, but also because it eschews functional idioms. JavaScript is much better in this regard, and it makes the code much more maintainable.
Re:In CPython, types implemented in C are part of the type tree by p7g on Thursday December 24, 2020 @06:58PM (#25532821)
Do you have any examples in mind?
Re:In CPython, types implemented in C are part of the type tree by legerdemain on Thursday December 24, 2020 @07:44PM (#25533097)
Sure, `reduce()` was removed from the standard library between Python 2 and Python 3. Here is Guido arguing that `lambda` and several other functions should be removed as well.[1]

[1] https://www.artima.com/weblogs/viewpost.jsp?thread=98196

Re:In CPython, types implemented in C are part of the type tree by klibertp on Thursday December 24, 2020 @08:24PM (#25533352)
> `reduce()` was removed from the standard library

Not true: it was moved from builtins to `functools` module, but it's still there.

Re:In CPython, types implemented in C are part of the type tree by legerdemain on Thursday December 24, 2020 @08:51PM (#25533485)
Please tell Guido that he got it wrong!

  > Only reduce will be removed from the 3.0 standard library. You can import it from functools.
Re:In CPython, types implemented in C are part of the type tree by geofft on Thursday December 24, 2020 @09:04PM (#25533545)
He did, in fact, misspeak. functools is part of the standard library, and was part of the standard library in 3.0, and contained reduce: https://github.com/python/cpython/blob/3.0/Lib/functools.py#...

What he meant to say is that it's removed from the list of builtins.