2020-01-06 12:26:00 +00:00
|
|
|
"""
|
|
|
|
categories: Types,dict
|
|
|
|
description: Dictionary keys view does not behave as a set.
|
|
|
|
cause: Not implemented.
|
|
|
|
workaround: Explicitly convert keys to a set before using set operations.
|
|
|
|
"""
|
2020-03-23 02:26:08 +00:00
|
|
|
print({1: 2, 3: 4}.keys() & {1})
|