From: Jae-Joon L. <lee...@gm...> - 2011-01-27 02:17:10
|
On Thu, Jan 27, 2011 at 10:07 AM, C M <cmp...@gm...> wrote: > I know the 2nd problem is that a dictionary cannot have a mutable > object like a list as a key. But previously, as I said, I was able to > call line, (with the comma) and it would work. In fact, line, with a > comma gives this type: > If you just want a hashable object, can you just cast it to a tuple? bars = self.subplot.bar(fake_data, fake_data ) bars_tuple = tuple(bars) bars_tuple can be used as a dictionary key. Regards, -JJ |