I stumbled upon the following syntax in Python decorator to keep signature and user defined attribute:
> def func():
... return "Hello World!"
...
> func?
Signature: func()
Docstring: <no docstring>
File: ~/<ipython-input-8-934f46134434>
Type: function
Attempting the same in my Python Shell, whether 2 or 3, simply raises a SyntaxError
. So what is this exactly, is it specific to some shells?