[issue10240] dict.update.__doc__ is misleading

2014-09-01 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/issue10240 ___

[issue10240] dict.update.__doc__ is misleading

2014-08-31 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10240 ___ ___

[issue10240] dict.update.__doc__ is misleading

2014-03-21 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- assignee: - docs@python components: +Documentation -Interpreter Core nosy: +berker.peksag, docs@python versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker

[issue10240] dict.update.__doc__ is misleading

2014-03-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Maybe the fastpath should do a strict check and not be used for subclasses of dict? This code is ancient and well-established. IMO, nothing good can come from changing it (besides slowing down code that is already deployed and working fine).

[issue10240] dict.update.__doc__ is misleading

2010-11-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10240 ___

[issue10240] dict.update.__doc__ is misleading

2010-10-30 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm not sure that we should mention the fast path for dicts. That is an implementation detail and may not be present in IronPython, PyPy, Jython, etc. The current version includes: D.updated(E, **F) -- None. Updated D

[issue10240] dict.update.__doc__ is misleading

2010-10-30 Thread ivank
ivank b...@ludios.org added the comment: CPython's dict(obj) ignores `keys` and `__iter__` if obj is a subclass of dict. I thought this was an important language detail, not just an implementation quirk. But, I just tested pypy 1.3, and it is calling .keys() on dicts. Oh well. I think the

[issue10240] dict.update.__doc__ is misleading

2010-10-30 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Maybe the fastpath should do a strict check and not be used for subclasses of dict? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10240

[issue10240] dict.update.__doc__ is misleading

2010-10-29 Thread ivank
New submission from ivank b...@ludios.org: It would be nice if dict.update.__doc__ conveyed some of the subtleties of the update algorithm. See the patch. I changed __doc__ to mention the fast path for dicts, and changed one instance of E: - E.keys(): -- components: Interpreter Core