Why is the dictionary key being converted to a inherited class type – stackoverflow.com 03:12 Posted by Unknown No Comments My code looks something like this class SomeClass(str): pass some_dict = {'s':42} >>> type(some_dict.keys()[0]) str >>> s = SomeClass('s') >>> some_dict[s] = 40 ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitWays to highlight during a presentation – apple.stackexchange.comWhich professional Quidditch team does Harry support? – scifi.stackexchange.comIn what comic Prof X says: "If we do that we'll be no better than Hitler, Stalin, or Doctor Doom." – scifi.stackexchange.comChanging tree direction to horizontal – tex.stackexchange.comSplines in GLM and GAM – stats.stackexchange.comWhat level should I give to this custom spell? – rpg.stackexchange.com
0 Comment to "Why is the dictionary key being converted to a inherited class type – stackoverflow.com"
Post a Comment