ZevGriner (1) [Avatar] Offline
#1
In 3.3.1, you state: Python has several ways of expressing Boolean values. As a newbie, I think this confusing. False is False. On the other hand, the constructs you mention, such 0 or None, evaluate to False. I think you should also enumerate all the empty values, '' [] {} ().

In 3.3.2 and beyond, you talk about control statements. Although you bring attention to the fact that " Python uses indentation to delimit blocks " in comment #2, as well as other places, NOWHERE in the book do you mention colons as a delimiter between the header and body of control structures, functions, or classes. (Of course, my search function could be broke).
naomi.ceder (134) [Avatar] Offline
#2
Re: Some comments
Good points. I guess traditionally there is some reluctance to offer a list of "all" the empty values, since new collection types are periodically added... but it wouldn't hurt to list the most common ones.

As to the colon... I do believe you are right - I'll try to take that into consideration for the future.

And thank you so much for both reading the book and taking the time to comment!

Cheers,
Vern