Skip to content

allow extending NumpyDocString sections #53

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

Merged
merged 2 commits into from
Oct 4, 2016
Merged

allow extending NumpyDocString sections #53

merged 2 commits into from
Oct 4, 2016

Conversation

haobibo
Copy link
Contributor

@haobibo haobibo commented Apr 6, 2016

Current implementation of NumpyDocString define sections in
self._parsed_data in NumpyDocString.__init__(), which is not
convenient for developers to extend this class to add more sections. By
setting section definitions as a class static variable, it will be more
convenient for developers to extend more sections by changing the class
static variable sections.

Current implementation of NumpyDocString define sections in
`self._parsed_data` in `NumpyDocString.__init__()`, which is not
convenient for developers to extend this class to add more sections. By
setting section definitions as a class static variable, it will be more
convenient for developers to extend more sections by changing the class
static variable `sections`.
@stefanv
Copy link
Contributor

stefanv commented Apr 7, 2016

I guess the purpose of a documentation standard is, in part, not to be extended. That said, this change is innocuous enough, so I'm ok with it.

@pv
Copy link
Member

pv commented Apr 7, 2016 via email

@haobibo
Copy link
Contributor Author

haobibo commented Apr 7, 2016

@pv already changed to deep copy.

@stefanv stefanv merged commit 24e915e into numpy:master Oct 4, 2016
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.

3 participants