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 TerkaitConjectures (or intuitions) that turned out wrong in an interesting or useful way – math.stackexchange.comHow should staff address non-doctorate professors? – academia.stackexchange.comUsing slang in a Scientific Paper – academia.stackexchange.comThe Third String – codegolf.stackexchange.comIf I've been prosecuted for a crime by another country can the US prosecute me for the same crime afterwards? – law.stackexchange.comDiagonal Alphabet To the Input – codegolf.stackexchange.com
0 Comment to "Why is the dictionary key being converted to a inherited class type – stackoverflow.com"
Post a Comment