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.19.2.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.17.3.2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.17.3.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.17.3.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.16.3.2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.16.3.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.16.0.4 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.16.0.3 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.16.0.2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.16.0.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.16.0.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.13.7.3 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.13.6.2 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.13.6.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.13.5.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.13.4.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.13.3.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.12.5.1 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.12.5.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py
rubyfox-server-2.12.4.0 lib/rubyfox/server/data/lib/Lib/test/bugs/pr119.py