[New-bugs-announce] [issue38933] unusual behaviour on list of dependable lambdas

Alexey Burdin report at bugs.python.org
Wed Nov 27 16:22:03 EST 2019


New submission from Alexey Burdin <longsillyusernamealreadytaken8 at gmail.com>:

>>> x=[2,3]
>>> [f(x) for f in [(lambda a:a[i]) for i in [0,1]]]
[3, 3]
>>> [f(x) for f in [lambda a:a[0],lambda a:a[1]]]
[2, 3]

----------
components: Interpreter Core
messages: 357586
nosy: Alexey Burdin
priority: normal
severity: normal
status: open
title: unusual behaviour on list of dependable lambdas
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38933>
_______________________________________


More information about the New-bugs-announce mailing list