Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bug or feature?
#6
(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.
Reply


Messages In This Thread
bug or feature? - by Mettler - Dec-06-2016, 06:05 PM
RE: bug or feature? - by micseydel - Dec-06-2016, 06:24 PM
RE: bug or feature? - by Mettler - Dec-06-2016, 06:35 PM
RE: bug or feature? - by micseydel - Dec-06-2016, 06:38 PM
RE: bug or feature? - by nilamo - Dec-06-2016, 07:24 PM
RE: bug or feature? - by micseydel - Dec-06-2016, 07:28 PM
RE: bug or feature? - by Mettler - Dec-06-2016, 08:02 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020