[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-28 Thread Éric Araujo
É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

[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16048 ___

[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-26 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16048 ___ ___ Python-bugs-list

[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-25 Thread Terry J. Reedy
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

[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-25 Thread Terry J. Reedy
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

[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-25 Thread Terry J. Reedy
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