[issue45832] Misleading membersip expression documentation

2021-11-20 Thread Harald Husum
Harald Husum added the comment: Serhiy, thanks for responding. I agree on this being "third-party" when looking at the original post I made, and I've reported the issue to the relevant party (https://github.com/pandas-dev/pandas/issues/44504). But really, the bigger issue h

[issue45832] Misleading membersip expression documentation

2021-11-19 Thread Harald Husum
Change by Harald Husum : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue45832> ___ ___ Python-bugs-list mailing list Unsub

[issue45832] Misleading membersip expression documentation

2021-11-18 Thread Harald Husum
Harald Husum added the comment: I am realising that me not knowing about the hash invariance is likely a symptom of something I have in common with most Python users, but not with Python maintainers: Having access to a powerful ecosystem, we mostly get our classes from 3rd parties, rather

[issue45832] Misleading membersip expression documentation

2021-11-17 Thread Harald Husum
Harald Husum added the comment: Might i then suggest mentioning in the docs that this assumes the invariance, combined with a backlink to the definition, instead of a full repeat? I'm sure the hash invariant is well known to you guys, working on python, but I was genuinely surprised

[issue45832] Misleading membersip expression documentation

2021-11-17 Thread Harald Husum
New submission from Harald Husum : https://docs.python.org/3/reference/expressions.html#membership-test-operations > For container types such as list, tuple, set, frozenset, dict, or > collections.deque, the expression `x in y` is equivalent to `any(x is e or x > == e for e in