In the documentation for `pub.mount` the argument list contains `\*`, what does this mean?
The actual line is:
Code: Select all
mount(device, mountpoint, \*, readonly=False, mkfs=False)
Anyone know the real answer?
Thanks,
Howard.
Code: Select all
mount(device, mountpoint, \*, readonly=False, mkfs=False)
Code: Select all
def f(positional, /, either_positional_or_nominal, *, nominal)
Code: Select all
def foo(x, *, y):
print(x, y)
foo(1, y = 2) # Works
foo(1, 2) # Will fail
You're right. This apparently used to be necessary (e.g. see http://docs.micropython.org/en/v1.12/li ... #pyb.mount where it was generated correctly).