[Python-Dev] PEP 544: Protocols (original) (raw)

Random832 random832 at fastmail.com
Mon Mar 20 14:39:36 EDT 2017


On Mon, Mar 20, 2017, at 14:07, Brett Cannon wrote:

What is a "trivial body"? I don't know of any such definition anywhere in Python so this is too loosely defined. You also don't say what happens if the body isn't trivial. Are tools expected to raise an error?

My assumption would be that a trivial body is any body consisting of only a docstring and/or a "pass" statement.



More information about the Python-Dev mailing list