adding methods at runtime and lambda

Mike msurel at comcast.net
Thu May 3 16:17:32 EDT 2007


In the above example 'addm' should be 'AddMethod'

superdict = AddMethod(dict(), lambda self, d:
myUtils.HasDrive(d),"hasdrive")




More information about the Python-list mailing list