On 10/29/2014 4:56 AM, ast wrote:
Consider the following to_bytes method from integer class:
int.to_bytes(length, byteorder, *, signed=False)
What doest the '*' in the arguments list means ?
If you go to the online doc index page for Symbols,
https://docs.python.org/3/genindex-Symbols.html
the
"Peter Otten" <__pete...@web.de> a écrit dans le message de
news:mailman.15291.1414574006.18130.python-l...@python.org...
A bare * indicates that the arguments that follow it are keyword-only:
ok, thx
--
https://mail.python.org/mailman/listinfo/python-list
ast wrote:
> Consider the following to_bytes method from integer class:
>
> int.to_bytes(length, byteorder, *, signed=False)
>
> What doest the '*' in the arguments list means ?
A bare * indicates that the arguments that follow it are keyword-only:
>>> def f(a, b=2, *, c=3):
... print("a =
Hi
Consider the following to_bytes method from integer class:
int.to_bytes(length, byteorder, *, signed=False)
What doest the '*' in the arguments list means ?
--
https://mail.python.org/mailman/listinfo/python-list