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

At Least One Example for Every Method, Function, and Class #246

Open
crantila opened this issue Nov 8, 2013 · 1 comment
Open

At Least One Example for Every Method, Function, and Class #246

crantila opened this issue Nov 8, 2013 · 1 comment

Comments

@crantila
Copy link
Member

crantila commented Nov 8, 2013

Every method, function, and class needs at least one example of a real-world use case.

Although it's not written in Python, the Qt API documentation is an excellent model. For example, http://qt-project.org/doc/qt-5.1/qtnetwork/qdnslookup.html

@crantila
Copy link
Member Author

crantila commented Nov 8, 2013

I have a very specific format in mind---unfortunately not present in any of our current documentation.

Kind of like AggregatedPiece.get_data(), but with the parameters, returns, and raises appearing after the brief description, and the examples appearing last.

Kind of like FilterByOffsetIndexer, but again re-ordered, and you probably want to emphasize Python-language examples most of the time.

This is my understanding of what Qt does.

These examples must be written in the docstrings of the source files themselves.

@crantila crantila modified the milestones: vis-framework-1.1.0, visXa Apr 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants