Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No docstring in pattern matching function #43

Open
pya opened this issue Jul 27, 2015 · 0 comments
Open

No docstring in pattern matching function #43

pya opened this issue Jul 27, 2015 · 0 comments

Comments

@pya
Copy link
Contributor

pya commented Jul 27, 2015

Functions can have docstrings:

>>> def f1():
...     """Docstring."""
... 
<function f1 at 0x102460c80>

but pattern matching functions cannot:

>>> def f2:
...     """Docstring."""
... 
ParsingError: file=<string> lineno=2 colno=21

There should be the possibility to add docstrings to all functions.

Also, multi-line docstrings cannot be specified at the REPL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant