You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> d = multidict.CIMultiDict()
>>> d["CONTENT-LENGTH"] = "4"
>>> "Content-Length" in d.keys()
True
>>> {"Content-Length"} & d.keys()
set() # Should get a result here
>>> {"CONTENT-LENGTH"} & d.keys()
{'CONTENT-LENGTH'}
I tried to do this in aiohttp to check if any of a set of headers is present.
The text was updated successfully, but these errors were encountered:
it seems that the feature request requires case insensitive set implemented first.
In turn, it raises additional questions:
What is the type of CISet() & set()? Should it be ci set or bare set? The same for set() & CISet()?
One possible solution could be returning CI Set for all binary operations if one of two arguments is also CI Set.
I think that can be changed by using __rand__, can't it?
But, I don't think it's necessary to have a CISet here, the main thing is just to ensure that the keys are returned. So, adding __add__/__or__ to KeysView and returning a set which contains the items in other which case-insensitively match keys in the KeysView should be sufficient.
Would be nice to have this work correctly:
I tried to do this in aiohttp to check if any of a set of headers is present.
The text was updated successfully, but these errors were encountered: