What does -> mean in Python function definitions?

It’s a function annotation. In more detail, Python 2.x has docstrings, which allow you to attach a metadata string to various types of object. This is amazingly handy, so Python 3 extends the feature by allowing you to attach metadata to functions describing their parameters and return values. There’s no preconceived use case, but the PEP … Read more