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 |
|
33
Global Scope |
The text states the following:
>>> import globals
>>> help(globals)
Will result in...
"Help on module globals:
NAME
globals
.
.
.
DATA
var1 = 3
var2 = 4"
In actuality the data is as follows:
DATA
var1 = 0
var2 = 1
The latter is correct, because globals.py initialized those global variables to 0 and 1, respectively, and also because the module was only imported at that point (i.e. nothing was executed).
Slightly later in the text, one encounters the following command:
>>> globals.Function2()
That does cause var1 and var2 to take on values 3 and 4, respectively. So, perhaps that is how the error was introduced in the text.
If you concur, please include this change in the book's next update.
Thank you.
PS - The Safari Books Online version does not include page numbers, so it is impossible to provide an accurate "Page number of error:*" as required by the online form at www.oreilly.com/cs/catalog/create/errata/?b=5217
Please fix it. I apologize for having to enter a bogus page number.
|
Anonymous |
Apr 28, 2016 |
Printed |
Page 32
1st paragraph |
....thin layer of insulting material...
instead of insulting, I believe it should be : insulating
|
Anonymous |
Aug 17, 2011 |
Printed |
Page 126
Middle of page |
In the middle where the book listed steps to compile, link, and execute the example sine_print.c code module, first step is correct:
% gcc sine_print.c -o sine_print
Running this on my Ubuntu system resulted the following linker error from the gcc compiler:
/tmp/cc286NYF.o: In function 'main':
sine_print.c:(.text+0x5e): undefined reference to 'sin'
collect2: ld returned 1 exit status
$
The step needs to include additional compiler flag -lm to fix this error. Step could be:
% gcc sine_print.c -lm -o sine_print
which worked for me.
regards,
Neal
|
Neal Shen |
Aug 12, 2011 |
Other Digital Version |
46
5th paragraph |
Battery capacity is cited as 0.5 Amps/hr and instead should be 0.5 Amp-hr.
|
Eric Meddleton |
Jun 11, 2011 |
Printed |
Page 370
code line 2 |
simIO = SimDev.SimDev()
NameError: name 'SimDev' is not defined.
|
Adam Lucas |
Dec 14, 2010 |
Printed |
Page 155
Third "for" loop in datapoint.c listing |
I think the third "for" loop needs to be:
for (i=0; i>=0; i++) {...
instead of:
for (i=0; i>0; i++) {...
Also:
When I print out the values of pointers stored in the array of pointers, the address interval is 24 bytes rather than the 12 bytes I would expect, since each datapoint structure is 12 bytes long. Why is that?
|
J Cook |
Dec 09, 2010 |