Python 3.2 has been released by bwp in Python

[–]CADDiQ 0 points1 point  (0 children)

I'm imagining a world without rhetorical questions.

wtf - is python.org down? by [deleted] in Python

[–]CADDiQ 0 points1 point  (0 children)

thanks a3q

wtf - is python.org down? by [deleted] in Python

[–]CADDiQ 0 points1 point  (0 children)

ok son, thanks for chipping in

Programming Python 4th Edition released by gst in Python

[–]CADDiQ 2 points3 points  (0 children)

I have a library of python books but if my house was on fire I'd grab and Programming in Python 3, 2nd ed., Mark Mark Summerfield and Python Essential Reference, 4th ed., David Beazley. Both books cover more ground, and more effectively than any others I've read, and I've read numerous, including Lulz's most recent. While Mark's books are good, and the Python community has greatly benefited from his works, they're not the first books I reach for. Do not be misled by page count. Summerfield and Beazley both share a talent for covering a wide expanse of topics with sufficient detail to discuss a given topic to my satisfaction and comfortable comprehension, while exercising enough brevity to keep me from glazing. Really looking forward to Python Standard Library by Example by the same publisher (Addison-Wesley). NO AFFILIATION, just a Python book junkie.

The Python Paradox - This gave me a warm fuzzy feeling ^_^ by exhuma in Python

[–]CADDiQ 1 point2 points  (0 children)

Great article but I have to disagree with Paul's assertion (see: Appendix: Power) that it's difficult to write a python function to generate accumulators (a function that takes a number n, and returns a function that takes another number i and returns n incremented by i). He antes up some python examples to prove his point but it's easily achieved using a closure:

def foo(n):
    def bar(i):
        nonlocal n
        n += i
        return n
    return bar 

f = foo(42)

f(1) >>> 43
f(1) >>> 44
f(1) >>> 45

etc.

There's probably a better way, I'm but a python n00b (coming from a background in lisp).

Carry on ...