11.10.21 01:35, MRAB пише:
> Maybe what's needed is to add, say, '*' to the format string to indicate
> that multiple values should come from an iterable, e.g.:
> 
>     struct.pack_into(f'{len(nums)}*Q', buf, 0, nums)
> 
> in this case len(nums) from the nums argument.

See https://www.python.org/dev/peps/pep-3118/.

_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/DLG3FLOADSMM2SLRIKDCS3EVW3XAZ3HM/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to