Re: [matplotlib-devel] kwargs.copy()

2007-03-26 Thread John Hunter
On 3/26/07, Eric Firing <[EMAIL PROTECTED]> wrote: > Popping the 'a' entry inside the function did not affect the dictionary > that was passed in; it evidently gets copied automatically. > > Am I missing something? Or should I go ahead and strip out the extra > copies and modify the corresponding

[matplotlib-devel] kwargs.copy()

2007-03-25 Thread Eric Firing
The coding guide recommends that any **kwargs dictionary that is passed into a function should be copied so that the original is unaffected when items are popped off inside the function. I noticed that this is not done by pylab functions generated by boilerplate.py, and in fact I don't think i