[Python-ideas] Repr of lambda

Ivan Levkivskyi levkivskyi at gmail.com
Mon Dec 18 13:11:56 EST 2017


Serhiy,

I like the idea, but in typeshed we have an agreement to always show a
default value by an ellipsis.
For example, definition like this:

def fun(x, y, z=0):
    return x + y + z

can be represented like this

fun(x, y, z=...)

or if one has annotations in the definition, then

fun(x: int, y: int, z: int = ...) -> int

So if you would make this change, I would prefer the existing "style".

--
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20171218/aa640d2f/attachment.html>


More information about the Python-ideas mailing list