A common misconception in communicating Python is
that range() and even list() are "function calls". That's
correct for range() in 2.x:
>>> type(range)
but has never been correct terminology regarding list().
Example:
"""
>From Chapter 9 of Inventing in Python:
The range() and list() Functio
On Sat, Jan 23, 2016 at 11:58 AM, John Zelle
wrote:
> Kirby,
>
> This is an interesting and subtle point. I understand the distinction
> that you are making, but syntactically and pragmatically, the call to a
> class constructor IS a function call in Python (unlike languages such as
> Java where
Kirby,
This is an interesting and subtle point. I understand the distinction that you
are making, but syntactically and pragmatically, the call to a class
constructor IS a function call in Python (unlike languages such as Java where
one needs "new" to call a constructor). As support for this