[TransWarp] tut.pdf bug?

Eckhard Jost e.jost at eckhardjost.de
Wed Sep 17 09:51:15 EDT 2003


In the tut.pdf on page 11:

When I try the first Example...:

from peak.api import binding

class Car(binding.Component):
  passengers=binding.New(dict)

aCar=Car()
print aCar.passengers

... I got the following:

Traceback (most recent call last):
  File "peak-test.py", line 3, in ?
    class Car:
  File "peak-test.py", line 4, in Car
    passengers=binding.New(dict, attrName='passengers')
TypeError: New() got an unexpected keyword argument 'attrName'


Greetings
Eckhard
-- 





More information about the PEAK mailing list