Python misconceptions in IBM Ruby article...
Robin Becker
robin at jessikat.demon.co.uk
Fri Feb 18 04:33:12 EST 2000
I guess the objection is to not having a standard name for the instance
in class functions. If we had the standard set at self you could
presumably write
class dingo:
def normal_func(a1,a2,....):
.....
classdef instance_func(a1,a2,...):
self.a=1
........
ie you could distinguish in the class definition between the kinds of
functions. Presumably normal_func cannot refer to self and instance_func
can. Also I assume that normal_func would live while the class does
which is more difficult in python.
--
Robin Becker
More information about the Python-list
mailing list