0

So, for example, when I call

print(help(all) or print(help(list.append)) it returns

Help on built-in function all in module builtins:
all(iterable, /)
    Return True if bool(x) is True for all values x in the iterable.
    
    If the iterable is empty, return True.
(END)

or

Help on method_descriptor:

append(self, object, /)
    Append object to the end of the list.
(END)

respectively.

However, this "/" does not appear in some other functions, such as print(help(open)) (which returns

Help on built-in function open in module io:

open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, clo sefd=True, opener=None)
    Open file and return a stream.  Raise OSError upon failure.

on a call).

So, given that I cannot pass anything to this parameter, what does it represent?

  • @Brian Yep. For some reason, when I was looking whether it has been answered before, it did *not* come up. Sorry for the dublicate. – Lev Barenboim Feb 13 '23 at 21:24

0 Answers0