-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comments
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. |
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
The text was updated successfully, but these errors were encountered: