Inconsistent tags
argument in Taggable.{__init__, _with_new_tags, tagged}
#137
Answered
by
inducer
matthiasdiener
asked this question in
Q&A
-
I wonder whether they should all accept Lines 253 to 284 in ea121e1 |
Beta Was this translation helpful? Give feedback.
Answered by
inducer
May 19, 2022
Replies: 1 comment 1 reply
-
That's on purpose. Constructors are supposed to be cheap. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
matthiasdiener
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's on purpose. Constructors are supposed to be cheap.
ToTagSetConvertible
is subject to normalization, after which it becomesFrozenSet[Tag]
. Normalization is kept out of the constructor code path specifically to avoid paying the normalization cost repeatedly.