Skip to content

Frozenset? #306

@tschm

Description

@tschm

This is a query I use to select all fields that are of type BB static or BB dynamic:

x = [name for name in select(f.name for f in Field if f.type.name in set({'BB-static', 'BB-dynamic'}))]

Good Python suggests to remove the set() construct and go directly with {...}. I am running Python 3.6.
However, then {} is a frozenSet and pony fails.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions