Unpacking extension (Re: A small inconsistency in syntax?)
greg at cosc.canterbury.ac.nz
Wed Oct 31 04:41:16 CET 2001
James_Althoff at i2.com wrote:
> Did you mean
> def __unpack__(self):
> return self.x, self.y
> And is Pair(a,b) on the LHS any *callable*? Or must the object Pair be a
> type object or class object only?
It must be a type or class object.
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
More information about the Python-list