[Doc-SIG] dict.update docstring

2008-10-03 Thread A.M. Kuchling
I've been looking at the docstrings of the built-in types, and I found the docstring for dict.update() really hard to understand. | update(...) | D.update(E, **F) -> None. Update D from E and F: for k in E: D[k] = E[k] | (if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F

Re: [Doc-SIG] dict.update docstring

2008-10-03 Thread Aahz
On Fri, Oct 03, 2008, A.M. Kuchling wrote: > > I've been looking at the docstrings of the built-in types, and I found > the docstring for dict.update() really hard to understand. > > | update(...) > | D.update(E, **F) -> None. Update D from E and F: for k in E: D[k] = E[k] > | (if E has keys el