[docs] misbehaving functionality of all() function

Sai Chandra Kumar saichandra1128 at gmail.com
Mon Apr 29 08:50:40 EDT 2019


Hello,

I was going through python 3.6 docs and i am finding all function is
behaving differently when working with variables and lists.

The all() function is not iterable for complex numbers. but when I am
passing complex number in list, the all function returns True.
l = [1,2,1+12.1j]


all(l)


I felt happy if you guys reply on top of these.



Thanks&Regards,

V.Saibabu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20190429/943902a4/attachment.html>


More information about the docs mailing list