Bare forward slash in Python function definition? [duplicate]
问题 This question already has answers here : Python: What does the slash mean in help() output? (2 answers) What is the meaning of a forward slash “/” in a Python method signature, as shown by help(foo)? [duplicate] (1 answer) Closed 6 months ago . In the Python 3.8 Programming FAQ, I saw the following function definition: class callByRef: def __init__(self, /, **args): for key, value in args.items(): setattr(self, key, value) This is missing in the Python 3.7 version: class callByRef: def __init