micropython/tests/cpydiff/types_dict_keys_set.py

8 wiersze
222 B
Python

"""
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.
"""
print({1: 2, 3: 4}.keys() & {1})