Update 00-Undertanding-Classes.py
+5 −1 · 1 file changed
-
00-Undertanding-Classes.py+5 −1
@@ -33,4 +33,8 @@ print type(a), type(a.r), type(a.i), a.r, a.i # print initargu.r # TypeError: __init__() takes exactly 3 arguments (1 given) -# print initargu().r \ No newline at end of file +# print initargu().r +""" +The only operations understood by instance objects are attribute references. +There are two kinds of valid attribute names, data attributes and methods. +"""