On Thu, 7 Jul 2022 at 22:55, Michael F. Stemper
wrote:
>
> sum() is wonderful.
>
> >>> nums = [1,2,3]
> >>> sum(nums)
> 6
> >>> product(nums)
> Traceback (most recent call last):
> File "", line 1, in
> NameError: name 'product' is not defined
> >>>
>
> I understand that there i
sum() is wonderful.
>>> nums = [1,2,3]
>>> sum(nums)
6
>>> product(nums)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'product' is not defined
>>>
I understand that there is no product() or prod(). Does anybody
here know why that was not included in the langu
python introduced os.pidfd_open(), which works as documented.
My development environment, PyCharm, complains about it being undefined.
Should it be in https://raw.githubusercontent.com/python/cpython/3.9/Lib/os.py ?
--
Gerard Weatherby | Application Architect
NMRbox | NAN | Department of Molecul