Éric Araujo added the comment:
Well there is
http://docs.python.org/reference/datamodel.html#special-method-names (even
thought we have a lot of evidence people miss that).
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16048
___
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16048
___
___
Python-bugs-list
New submission from Terry J. Reedy:
(from python-list thread data attributes override method attributes?)
9.4. Random Remarks
Data attributes override method attributes with the same name; to avoid
accidental name conflicts, which may cause hard-to-find bugs in large programs,
it is wise to
Terry J. Reedy added the comment:
Peter Otten thought the first clause should instead be Data attributes and
method attributes share the same namespace., which is also true for a given
object. This is a different intepretation of what the original author was
getting at. The convention remark
Terry J. Reedy added the comment:
Ian Kelly reminds me that instance.__xxx__ is only skipped by the internal
machinery and not by direct accesses in user code. In the other hand, docs,
official or otherwise, are filled with things like 'len(a) calls a.__len__', so
I think something should be