Skip to content

Set docstring of function as None if not declared - #1580

Merged
palaviv merged 1 commit into
RustPython:masterfrom
seeeturtle:doc-f
Nov 2, 2019
Merged

Set docstring of function as None if not declared#1580
palaviv merged 1 commit into
RustPython:masterfrom
seeeturtle:doc-f

Conversation

@seeeturtle

Copy link
Copy Markdown
Contributor

In cpython, if there is no docstring declared in function definition,
the __doc__ attribute of the function is None.
So this implements the behavior.

Fix #1523

In cpython, if there is no docstring declared in function definition,
the `__doc__` attribute of the function is None.
So this implements the behavior.

Fix RustPython#1523
@palaviv

palaviv commented Nov 2, 2019

Copy link
Copy Markdown
Contributor

Great work @seeeturtle. This make the change in #1550 redundant so I would suggest removing it in a different PR.

@seeeturtle

Copy link
Copy Markdown
Contributor Author

@palaviv what do you mean to remove in different PR?

@coolreader18

Copy link
Copy Markdown
Member

I think he's made the change in #1582

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

Successfully merging this pull request may close these issues.

Objects inherit docstring from object if not overwritten

3 participants