Re: [Edu-sig] Too simple (was Re: Interesting "gotcha")

2011-03-30 Thread kirby urner
I've always been a fan of Sesame Street, some of the earliest episodes of which you can't buy as a minor they tell me, because they show kids doing too dangerous things (like making friends with strangers and running through a junk yard, hopping on bed springs or something). TV-14? On that show,

Re: [Edu-sig] Interesting "gotcha"

2011-03-30 Thread kirby urner
On Wed, Mar 30, 2011 at 11:31 AM, Edward Cherlin wrote: > So 'in' is a comparison "operator", is it? I am annoyed at how long it > took me to verify that Python treats it as such, and I am also annoyed > that it is so. > > http://docs.python.org/tutorial/datastructures.html > 5.7. More on Conditi

[Edu-sig] The Undiscoverable (was Re: Interesting "gotcha")

2011-03-30 Thread Edward Cherlin
I am a big fan of discovery learning, and thus down on anything that interferes with discovery. I practice what I call defensive documentation on such problems, as do some others. See for example, The C Puzzle Book, and my Sugar Labs page http://wiki.sugarlabs.org/go/The_Undiscoverable We will ne

[Edu-sig] Too simple (was Re: Interesting "gotcha")

2011-03-30 Thread Edward Cherlin
Einstein probably did not say, "Everything should be made as simple as possible, but _no simpler_." However, somebody did, and somebody was right. One of the biggest problems in teaching programming is the constant pretense that we are not doing complicated mathematics, and the resulting attempt to

Re: [Edu-sig] Interesting "gotcha"

2011-03-30 Thread Edward Cherlin
So 'in' is a comparison "operator", is it? I am annoyed at how long it took me to verify that Python treats it as such, and I am also annoyed that it is so. http://docs.python.org/tutorial/datastructures.html 5.7. More on Conditions¶ The conditions used in while and if statements can contain any

Re: [Edu-sig] Interesting "gotcha"

2011-03-30 Thread Kirby Urner
What is a Python module? #== Common answer is "a file containing Python source code?", but I'm questioning whether that's sufficient definition. How about an importable .pyc or .pyd, with no .py in the picture. That's a module too, no? ** Import Star #===