News for hackers. Stuff that matters.
Re:Dive Into Python 3 (online book) by Luyt on Monday August 08, 2011 @11:28PM (#2862768)
"This book is so full of bad initial examples and difficult to follow instructions that it actually hurts Python to have it exist. When beginners stumble onto it they end up getting discouraged and go on to another language. I personally have had too many friends who are eager to learn programming find this festering dung pile before I could warn them and get turned off from programming." - Zed Shaw
Re:Dive Into Python 3 (online book) by enterneo on Tuesday August 09, 2011 @12:25AM (#2862885)
I do not agree. In fact, the insanely cool examples are what makes this book worth reading. This book is not for beginners but for programmers who have experience in some other language and are curious to know why python might be a better choice for them as their next high level language.
Re:Dive Into Python 3 (online book) by enterneo on Tuesday August 09, 2011 @04:32AM (#2863365)
in fact to reiterate have a look at the awesome fibonacci example showing power of generators [1]:

    def fibonacci(max):
        a, b = 0, 1       
        while a < max:
            yield a       
            a, b = b, a+b
To run the function do:

    >>> for n in fibonacci(1000): 
    ...     print n,              
    0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987
[1] http://diveintopython.org/dynamic_functions/stage6.html
Re:Dive Into Python 3 (online book) by ez77 on Tuesday August 09, 2011 @03:34AM (#2863275)
That is, at best, a very high-level 'why', and unnecessarily hostile.