[issue37430] range is not a built-in function

2019-06-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Then it appears the indexing could also be improved. -- ___ Python tracker ___ ___ Python-bugs-li

[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer
bob gailer added the comment: Thanks for explaining. Indeed range appears in __builtins__. It is a surprise to type range and get in response. sum otoh gives . The distinction between function, type and class seems muddy. When I enter "range" in the index box in the windows documentation dis

[issue37430] range is not a built-in function

2019-06-27 Thread Terry J. Reedy
Terry J. Reedy 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 "

[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer
New submission from bob gailer : In section 8.3 The for statement there is a reference to range as a built-in function. That was true in python 2. Now range is a built-in type. -- assignee: docs@python components: Documentation messages: 346745 nosy: bgailer, docs@python priority: norm