Mercurial > hg > config
changeset 184:434c65593612
link to documentation
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 11 Dec 2011 11:28:06 -0800 |
parents | 748c232c0af3 |
children | 952ba8de70d8 |
files | python/mutable_defaults.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/python/mutable_defaults.py Thu Nov 24 14:41:09 2011 -0800 +++ b/python/mutable_defaults.py Sun Dec 11 11:28:06 2011 -0800 @@ -1,5 +1,7 @@ #!/usr/bin/env python +# see also: http://www.daniweb.com/software-development/python/threads/66697 + class Foo(object): def __init__(self, mutable=['default']): self.foo = mutable