Xah the arrogant wrote, among other things,

# one can change data inside the class
x.i = 400

# one can also add new data to the class
x.j=4
print x.j

# or even override a method
x.square = 333
# (the following line will no longer work)
# print "3 squared is:", x.square(3)

# in Python, one must be careful not to
# overwrite data or methods defined in a
# class.
--------------

However, there are several errors in the above that would mislead a Python 
learner.  I advise any such to ignore Xah's writings.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to