Errata

Python in a Nutshell

Errata for Python in a Nutshell

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed

I do not find any information about the zip() function, which is a builtin function. It's definitely not in the index. Am I missing something, or is this an overlook?

Good book otherwise.

Alain Mosnier  Jul 12, 2020 
Printed Page 45
section Sequences

Reference in
(as discussed in "Sequences" on page 45)
should possibly reference section "Sequences" on page 132.

Eckhard Stein  Nov 12, 2018 
PDF Page 107
first line in section __new__

The first line says that __new__ is a class method.

But according to python docs, the __new__ method is static.

In addition, the function call on line 3: C.__new__(C,*args,**kwds)
is the way to call a static method.

So, is there anything that I misunderstood, or, that's just a typo?

Sky Liu  Feb 06, 2020 
PDF Page 183
4th paragraph

First sentence of the paragraph reads:

In v2, by default, when module M in package P executes import X, Python searches for X in M, before searching in sys.path.

However, it should read "...Python searches for X in P, before searching in sys.path".

Tomas Linhart  Dec 31, 2017 
PDF Page 195
1st paragraph

Last sentence of the first paragraph reads:

This chapter provides additional coverage of core built-in types (in “Built-in Types” on page 196) and covers built-in functions available in the module builtins (named __builtins__ in v2) in “Built-in Functions” on page 199.

The module's name in v2 is "__builtin__", not "__builtins__".

Tomas Linhart  Dec 31, 2017 
Printed Page 308
4th paragraph

In the explanation of the os.path module function walk, on page 308, the book refers to:

"os.walk, covered in Table 10-4"

It is actually in Table 10-3 (page 304).

David Díaz Pardo  Jun 12, 2019 
PDF Page 503, 507, 508
Function prototypes for getfqdn( ), send( ), sendmsg( )

The square brackets for optional arguments are written in different styles -- both straight and italic. Probably they were all meant to be italic.

Also send( ) function on page 507 contains an extra closing bracket in its signature.

Eugene  Oct 05, 2020 
PDF Page 686
Function prototype for PyModule_New( )

PyModule_New( ) contains address-of operator in its prototype instead of an asterisk. Such signature is illegal in pure C.

Eugene  Oct 05, 2020