MCslp HomeMCslp Home Contact | About | Help | Legal
Books | Articles | Downloads
News | News Archive
 
 
 
Page 88, Second Code Example

The call to the function, funcb() should include the argument value. The full example should read:

def funca():
    value=59
    funcb(value)
    def funcb(value):
        print(value*2)

Page 93, First Code Example

We should be iterating over items rather than list to achieve what we want, so the code should read:

def multi_insert(list, *items):
    for item in items:
        list.append(item)

Page 359, Second Example and following text

The code example given shows how to bind the pressing of the 'z' key to a function:

widget.bind("",pressed_z)
However, the explanatory text describes the CTRL key. The following paragraph should read:
maps the user pressing the z key (note lowercase), without any modifier, to the pressed_z method. Other possible values for event are:...

Page 371, Table 15-6

I make a reference to Perl in the first row of the table, when of course we are talking about Python.

[an error occurred while processing this directive] [an error occurred while processing this directive]
 PYTCR Quick Links
 

Book Summary
Book Errata
Add a new errata entry
Sample Chapter: Chapter 01 - Introducing Python (Acrobat PDF)

 Buy Python The Complete Reference
 

Python Annotated Archives
Amazon US | Amazon UK
fatbrain (US)
Python The Complete Reference
The Complete guide to programming in Python including both examples and reference information
Check the details on Python The Complete Reference


Website (c) 1998 and beyond Martin C Brown, MCSLP, UK. All other items, including contributed texts, files and information is the copyright of their respective owners.
Contact Us