Sha256: b1887229b5047c7662404352fd08bd3cdbb266086a9efe0a1bc4d1bc3a85aa93
Contents?: true
Size: 245 Bytes
Versions: 30
Compression:
Stored size: 245 Bytes
Contents
d = {} l = [1] try: d[l] = 2 except TypeError: pass else: print 'Should not be able to use a list as a dict key!' a = {} try: d[a] = 2 except TypeError: pass else: print 'Should not be able to use a dict as a dict key!'
Version data entries
30 entries across 30 versions & 1 rubygems