PythonExtra/tests/basics/set_type.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
240 B
Python
Raw Permalink Normal View History

# set type
# This doesn't really work as expected, because {None}
# leads SyntaxError during parsing.
try:
set
except NameError:
print("SKIP")
raise SystemExit
print(set)
print(type(set()) == set)
print(type({None}) == set)