|
|
|
Ask HN: Best way to find out when features were added to languages?
|
|
2 points
by wassenaar10
1521 days ago
|
|
An engineer (non-software) friend of mine asked me if range() was a function that had been added recently to Python, or if his professors just never showed it to him. I told him range() has been there since the 90s and that his professors were just bad at Python. The thing is, I'm not actually sure about the first part. I know the history of some features, for example, I know that list-comprehensions were only added in Python 2 around 2000 and I know that map, reduce, and filter were added pretty early (like 1993) by programmers who were familiar with lisp. But I'm finding it really hard to find out when specific, arbitrary features were added to Python (or to other languages). Google is no help because regardless of how I structure my query or tweak the search options, it just shows me endless SEO drivel sites that are only remotely related to what I searched. Anyone have a better way to find out stuff like this? |
|
As to range: docs.python.org has documentation for supported versions, including version 2.7.
It shows range existed as a function in 2.7 (https://docs.python.org/2.7/library/functions.html#range), but no longer is a function in 3.5 (https://docs.python.org/3.5/library/functions.html#func-rang...)
So, in some sense it was removed (in 3.0, I think), and replaced by an “immutable sequence type”.
If you want to check binaries, https://www.python.org/download/releases/ and https://www.python.org/downloads/ have old releases you might try out.