Idea about method parameters
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon Sep 24 20:55:46 EDT 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:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list