Idea about Idea about method parameters

Greg Ewing greg at
Thu Sep 27 03:27:02 CEST 2001

Toby Dickenson wrote:
> class A:
>     def __init__(self, value1, value2, value3):
>         self.value1,self.value2,self.value3 = value1,value2,value3

Ooh! Ooh! Ooh! What if you could say

  self.(a, b, c) = a, b, c

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 mailing list