Update purity.rst

This commit is contained in:
Romain Dorgueil
2017-04-22 18:29:48 +02:00
committed by GitHub
parent b33076d6a4
commit 1399bbe733

View File

@ -82,7 +82,7 @@ For example, doing the following may cause unexpected problems:
'foo': compute_something() 'foo': compute_something()
}) })
# Still bad! Don't mutate the dict! # Still bad! Don't mutate the dict!
d['bar']: compute_anotherthing() d['bar'] = compute_anotherthing()
return d return d
The problem is easy to understand: as **Bonobo** won't make copies of your dict, the same dict will be passed along the The problem is easy to understand: as **Bonobo** won't make copies of your dict, the same dict will be passed along the