News for hackers. Stuff that matters.
Re:Learn Python in minutes by gshubert17 on Friday June 28, 2013 @04:45PM (#5960259)
I added a couple of lines to fix errors I ran into with Python 2.7.3:

Add about line 89, before assignment to some_var,

    a, b = 3, 4
Added a try-except around line 186, to guard the KeyError,

    try:   
        filled_dict["four"] #=> KeyError
    except KeyError:
        print "Raises a KeyError"
Added a definition of foo around 320, so calls would work

    def foo(*seq, **dict): pass

There are no comments on this comment yet.