[docs] Bug - 4.7.7
Tronster
tronster at fastmail.us
Mon Apr 13 13:49:56 CEST 2015
For someone learning Python, the sample itself doesn't make sense.
https://docs.python.org/3/tutorial/controlflow.html <https://docs.python.org/3/tutorial/controlflow.html>
4.7.7 Function Annotations
Typed in program in PyCharm and received the following:
>>> def f(ham:42, eggs:int='spam') ->"Nothing to see here":
... print("Annotations:", f.__annotations__)
... print("Arguements:", ham,eggs)
...
File "<input>", line 1
def f(ham:42, eggs:int='spam') ->"Nothing to see here":
^
SyntaxError: invalid syntax
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20150413/e5fd4e22/attachment.html>
More information about the docs
mailing list