Dec-06-2016, 07:28 PM
(Dec-06-2016, 07:24 PM)nilamo Wrote: Why is that shocking? You're altering the dict's value, but not the 'self.number' value.I can see how someone might think that they were binding the variable, rather than the value, into the dictionary. Especially with the literal notation. It's just not the case.