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

Version Path
rubyfox-server-2.12.1.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.11.1.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.9.2.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.9.1.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.9.0.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.8.4.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.8.0.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.8.0.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.3.0.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.3.0.pre2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py