DiveIntoPythonZh/xe_en

Errata for Dive Into Python 5.4

5. Objects and Object-Orientation

5.2 Importing Modules Using from module import


7. Regular Expressions

7.4 Using the {n,m} Syntax

12. SOAP Web Services

12.6 Introspecting SOAP Web Services with WSDL

>>> from SOAPpy import WSDL
>>> wsdlFile = 'http://www.xmethods.net/sd/2001/TemperatureService.wsdl')
>>> server = WSDL.Proxy(wsdlFile)
>>> server.methods.keys()
[u'getTemp']

16. Functional Programming

16.3 Filtering lists revisited

18. Performance Tuning

A great bug

  1. The "best result so far" in stage2 is 1e, but the text said it is 1c. The code is all right.

  2. The test result for 2c differs too much in stage 2 and in stage 3; either of them is wrong or should be abandoned.

  3. There are many conflictings between the text and the test result. Here is a picture showing the conflictings. I adopted the result in stage 2 for 2c.
    The black arrow shows the relationship according the text ("a -> b" means "a is slower than b"). The blue and red arrows show the conflictings. The numbers beside them stands for the test cases(1. Woo, 2. Pilgrim, 3. Flingjingwaller). Blue arrows mean that the two data differ little, so the conflicting may be ommited; and red arrows mean that the performance relationship between the two programs are totally on the opposite.

stage0.jpg

DiveIntoPythonZh/xe_en (last edited 2009-12-25 07:08:52 by localhost)