Bare *
is used to force the caller to use named arguments – so you cannot define a function with *
as an argument when you have no following keyword arguments.
See this answer or Python 3 documentation for more details.
More Related Contents:
- Bare asterisk in function arguments?
- How to sum all range output in python 3
- Python for in range()
- __init__() missing 1 required positional argument ‘address’
- Why is “1000000000000000 in range(1000000000000001)” so fast in Python 3?
- How to install pip with Python 3?
- How to solve “error: Microsoft Visual C++ 14.0 or greater is required” when installing Python packages?
- How to specify multiple return types using type-hints
- Are lists thread-safe?
- Relative imports in Python 3
- Size of list in memory
- Python 3: EOF when reading a line (Sublime Text 2 is angry)
- Is there a way to set a default parameter equal to another parameter value?
- Why is exponentiation applied right to left?
- How can I generate a list of consecutive numbers?
- PyEval_InitThreads in Python 3: How/when to call it? (the saga continues ad nauseam)
- Prevent creating new attributes outside __init__
- Logging to two files with different settings
- “RuntimeError: generator raised StopIteration” every time I try to run app
- How can I split a string of a mathematical expressions in python?
- How to call an async function without await?
- Using asyncio.Queue for producer-consumer flow
- Are there any reasons not to use an OrderedDict?
- Changing one dict changes all dicts in a list of dicts [duplicate]
- Class Based Views VS Function Based Views
- Why do Tkinter’s Radio Buttons all Start Selected When Using StringVar but not IntVar?
- How to convert string representation of dictionary in Pandas DataFrame to a new columns?
- initialize and add value to a list in dictionary at one step in Python 3.7
- How to fix ipykernel_launcher.py: error: unrecognized arguments in jupyter?
- name ‘times’ is used prior to global declaration – But IT IS declared