The official documentation says:
object.__bytes__(self)Called by
bytesto compute a byte-string representation of an object. This should return abytesobject.
But when I do dir(object) or dir(bytes) or dir(bytearray), the __bytes__ method does not show up. So where can it be found?