DRM Development 25th Anniversary

Category: Python 3

What’s New in Python 3.8 – Positional-only parameters

What’s New in Python 3.8 – Positional-only parameters Python Developer and Training

There is a new function parameter syntax / to indicate that some function parameters must be specified positionally and cannot be used as keyword arguments. This is the same notation shown by help() for C functions annotated with Larry Hastings’ Argument Clinic tool. In the following example, parameters a and b are positional-only, while c or d can be positional or keyword, and e or f are required to be keywords: def f(a, […]

Translate »