[issue25843] lambdas on the same line may incorrectly share code objects

R. David Murray report at bugs.python.org
Fri Dec 11 15:13:29 EST 2015


R. David Murray added the comment:

Thanks for posting the bug.  I added the aside because this is the third or fourth of these reference-only things I've seen in the past couple weeks and I finally figured out what bothered me about them.  We should put something about this in the devguide on bug reporting, but of course most people reporting bugs will for good reason not read that.  So, I just have to live with it :)

And yes, the reproducer reproduces the problem in all python versions currently under maintenance.

I've now changed the title to reflect the underlying bug.

----------
title: unexpected output using pythons ternary operator in combination with lambda -> lambdas on the same line may incorrectly share code objects

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


More information about the Python-bugs-list mailing list