To clarify how Python handles two equal objects

Axel Reichert mail at axel-reichert.de
Fri Jan 13 03:21:52 EST 2023


<avi.e.gross at gmail.com> writes:

> As an example, you can create a named slice such as:
>
>   middle_by_two = slice(5, 10, 2)
>
> The above is not in any sense pointing at anything yet.

>From a functional programming point of view this just looks like a
partially applied function, and with this in mind the behaviour to me
seems to be completely as expected. No surprises here, or do I miss
something?

Best regards

Axel


More information about the Python-list mailing list