Discussion forum for David Beazley

Post errata topics for Python Essential Reference fourth Edition

I didn’t see this in the Errata online - but after reading the section on Decorators ( page 101) where inline functions were dynamically define and return, I thought it strange that the examples in the Documentation Strings section (page 113- 114 ) that the “def” was missing on the definition of the call function

E.g.

Shouldn’t

def wrap(func):
call(*args, **kwargs):
have been

def wrap(func):
def call(*arge, **kwargs):

This shows up once on page 113, and twice on page 114

Looks like leading spaces were removed in my previous post, but looking at the book - I was trying to copy the indentation from the book