Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

People write also long strings, lists, dicts, but they are not truncated. In 
contrary to the above types which usually are created programmically and can be 
very large, lambdas are written manually and rarely exceed the size of a single 
line. We should discourage writing long lambdas. Local named functions are more 
appropriate for this. Although some people can use very long function names...

Actually the repr of lambda can be very long now: <function 
VeryLongClassName.very_long_method_name.<locals>.<lambda> at 0x7fa2d9e04338>.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34856>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to