Re: Why isn't there a built-in product()?

2022-07-07 Thread Oscar Benjamin
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

Why isn't there a built-in product()?

2022-07-07 Thread Michael F. Stemper
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 3.9 pidfd_open

2022-07-07 Thread Weatherby,Gerard
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