sobolevn

Results 1663 comments of sobolevn

Other use-cases that we can find in our own code: - dataclass: https://github.com/python/cpython/blob/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe/Lib/dataclasses.py#L1487 also `as_tuple` for `set` and `frozenset` - weakref: `WeakValueDictionary` https://github.com/python/cpython/blob/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe/Lib/weakref.py#L191 and `WeakKeyDictionary`: https://github.com/python/cpython/blob/26d24eeb90d781e381b97d64b4dcb1ee4dd891fe/Lib/weakref.py#L448 where values can be...

Special case to keep in mind: ```python Python 3.8.9 (default, May 3 2021, 12:15:25) [Clang 11.0.0 (clang-1100.0.33.16)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> class...

This is an example that the method resolution order changes. It now ignores custom `__bytes__` method, I don't think that changing `__bytes__` method on `bytes` subclass is an artificial example....