Idea about method parameters

Greg Ewing greg at
Tue Sep 25 02:55:46 CEST 2001

Markus Schaber wrote:
> This is why I gave the following semantic definition:
> class A:
>     def m(self, value):
>         self.value = value
>         del value
>         #the other work here

You may have to pin this down a bit more. How literally are
we to take the idea that value is bound and then del'ed?
For example, what should this do:

  class A:
    def m(self, self.x, x):
      print x


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