[issue11221] all() returns wrong result when the parameters are non-encapsulated list-comprehension
Georg Brandl
report at bugs.python.org
Wed Feb 16 09:40:02 CET 2011
Georg Brandl <georg at python.org> added the comment:
It's not easy to reproduce this without the full list of decimals.
Do you have a nonstandard decimal Context set?
What is the result if you put the LC into a function, i.e.
def f(L):
return [(x<=y) for x,y in zip(L, L[1:])]
print all(f(L))
----------
nosy: +georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11221>
_______________________________________
More information about the Python-bugs-list
mailing list