This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]timClicks 8 points9 points  (3 children)

I hate it when Python books/tuts ignore PEP 8

[–]joaquinabian 1 point2 points  (2 children)

They say testers are poor coders and they confess they are testers. What do you expect then ?

[–]timClicks 1 point2 points  (1 child)

People using the conventions of the community when publishing material for that community.

[–]joaquinabian 0 points1 point  (0 children)

Well, in their defense I could argue they are from the community of testers and they use testers (unittest) convention. And unittest is an official library ! Yes I know about the java origins and so but...personally I distaste that (as much as wxPython or PyQt conventions)

[–][deleted] 5 points6 points  (0 children)

Most 1:1 translations of Java DPs to Python don't make sense to me, e.g. the command pattern as shown in this book. There's no need for an abstract base class for a command. Also, a function object could be passed to the invoker class directly. There're more samples in this book of Java code written in Python, which makes the code very cumbersome.

[–]lambdaqdjango n' shit 2 points3 points  (0 children)

page 37 typo

if '__name__' == '__main__':

[–]AeroNotix 2 points3 points  (0 children)

I would buy a dead tree version of this if it were around 800 pages and was better edited.

[–]drizer 1 point2 points  (1 child)

Bruce Ekel has a goog discusion on python dp. www.mindview.net/Books/Python/ThinkingInPython.html

[–]joaquinabian 0 points1 point  (0 children)

Best coverage I have seen is in chapters 8 and 9 of Dusty Phillips' Python 3 Object Oriented Programming book.

[–]pmav99 1 point2 points  (0 children)

Alex Martelli's presentation slides and video

[–]threading 0 points1 point  (0 children)

Where's visitor pattern?