Thus said John Found on Sat, 04 Apr 2015 01:25:27 +0300:

> Sorry, I  am not git/github  user. Feel free to  use the code  from my
> e-mails, or your own  fixes (as I said, my python  skills are close to
> zero).

Except, that you correctly point out  that if you pass a dictionary into
a function, it  is ``passed by reference'' and any  modifications to the
dictionary outside the  function will result in changing  the effects of
the function.

One method is copy.deepcopy,  you could also eval(repr(dictionary)), but
one shouldn't  even have  to worry about  this! But what  if one  of the
elements in the dictionary is actually  a function, class, or some other
object that eval(repr()) cannot handle?  I wonder how well copy.deepcopy
does in comparison...

Anyway, shame on Python!

Thanks,

Andy
--
TAI64 timestamp: 40000000551f2c09
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to