Terry J. Reedy <tjre...@udel.edu> added the comment:

I presume you are referring to 8.3 of the language reference
https://docs.python.org/3/reference/compound_stmts.html#the-for-statement
which has "the built-in function range()".  Types/classes *are* functions, 
which is why dist, list, range, etc are listed in "Built-in Functions" in the 
library reference.  But I agree that the more specific term should be used.

To me, the more severe problem is with the complete sentence.

"Hint: the built-in function range() returns an iterator of integers suitable 
to emulate the effect of Pascal’s for i := a to b do; e.g., list(range(3)) 
returns the list [0, 1, 2]."

The now obsolete definition of Python in terms of the now obscure Pascal should 
be deleted here and anywhere else such remains.  I think the whole sentence 
should just be deleted.  The whole paragraph and example could otherwise be 
improved.

----------
nosy: +terry.reedy
versions: +Python 3.9 -Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37430>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to