What is the meaning of a forward slash “/” in a Python method signature, as shown by help(foo)? [duplicate]

As explained here, the / as an argument marks the end of arguments that are positional only (see here), i.e. arguments you can’t use as keyword parameters. In the case of __eq__(self, value, /) the slash is at the end, which means that all arguments are marked as positional only while in the case of … Read more