[Edu-sig] a common misconception

2016-01-23 Thread kirby urner
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

Re: [Edu-sig] a common misconception

2016-01-23 Thread kirby urner
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

Re: [Edu-sig] a common misconception

2016-01-23 Thread John Zelle
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