On Thu, Jan 12, 2012 at 1:31 PM, Chris Nelson <[email protected]> wrote: > But even [snip] > ticketsByID[t['id']] = copy.copy(dict(t)) [snip] > # Copy back the schedule results > for t in tickets: > for field in [ 'calc_start', 'calc_finish']: > t[field] = ticketsByID[t['id']][field] > > leaves changes to ticketsByID visible in tickets to the caller of > computeSchedule(). And if I do `copy.deepcopy(dict(t))` I'm back to > `__init__() takes exactly 3 arguments (1 given)`.
Huh. Then it sounds like you need to drop into an interactive pdb session in there to inspect the dict and figure out exactly what nested object is involved. Once you isolate that you can just special-case it one way or another. -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
