On 5/30/2011 3:38 AM, Laurent wrote:
Cool. I was thinking that "5" was the name, but >>> 5.__add__(6) File "<stdin>", line 1 5.__add__(6)
Try 5 .__add__(6)Modules, classes, and functions have a .__name__ attribute (I call it their 'definition name') used to print a representation. As best I can remember, other builtin objects do not.
-- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list