[New-bugs-announce] [issue19423] permutations len issue

Evgeny Luttsev report at bugs.python.org
Mon Oct 28 18:16:58 CET 2013


New submission from Evgeny Luttsev:

Code:
n = 2
perms = permutations(range(n), n)
if list(perms) == [(0, 1), (1, 0)]:
	print("==")
	print("len(list(perms)):", len(list(perms)))

Result:
==
len(list(perms)): 0 # SHOULD BE 2

----------
components: Library (Lib)
messages: 201556
nosy: DSblizzard
priority: normal
severity: normal
status: open
title: permutations len issue
type: behavior
versions: Python 2.6, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19423>
_______________________________________


More information about the New-bugs-announce mailing list