[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2014-12-12 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9536 ___

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2014-12-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9536 ___ ___

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2014-12-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: [John Posner] The fact is that a programmer using defaultdict does not need to know anything about __missing__. I disagree. It seems to help people understand the defaultdict which otherwise seems more magical that it actually is. Also, it is a part of

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2014-12-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: http://svn.python.org/view/python/branches/release25-maint/Doc/lib/libcollections.tex?r1=38658r2=42573 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9536

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2014-12-07 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9536 ___ ___ Python-bugs-list

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2014-12-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the patch is not acceptable as is. The public attribute *defaultdict* should be explicitly documented as it is now, so that it is indexed. On the other hand, users should not directly call .__missing__, and it is not normal to document the

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2013-01-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9536 ___

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2010-08-08 Thread John Posner
John Posner jjpos...@optimum.net added the comment: I think it would be confusing to create of subclass of defaultdict, defining a __missing__ method in that subclass. The existence of the __missing__ method would cancel the main functionality of the defaultdict object: invoking the default

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2010-08-08 Thread John Posner
John Posner jjpos...@optimum.net added the comment: On python-list, Wolfram Hinderer objected to the proposed patch's calling __missing__ a special method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9536

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2010-08-08 Thread John Posner
Changes by John Posner jjpos...@optimum.net: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9536 ___ ___ Python-bugs-list

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2010-08-06 Thread John Posner
New submission from John Posner jjpos...@optimum.net: The documentation for collections.defaultdict is confusing with respect to the __missing__ method. The fact is that a programmer using defaultdict does not need to know anything about __missing__. The attached patch contains a rewrite of

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2010-08-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I believe the description of __missing__ is there for those who want to subclass defaultdict, but I'll let Raymond confirm. -- nosy: +r.david.murray, rhettinger resolution: - invalid stage: - committed/rejected status: open -