documentation (docstrings) in python #2804
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds the docstring from https://carla.readthedocs.io/en/latest/python_api/ into the python source code, ad discussed in #2752. This is still in an early stage, not all references are resolvable, and there is a problem with overloaded functions for which it is not clear which doctrine to choose. Nevertheless, I publish the pull request in order to draw more attention to this topic.
I hope this improves your experience with Carla, you can find a precompiled egg file for Linux (for Carla 0.9.9) here.
Where has this been tested?
Possible Drawbacks
This is still very hacky, not all references are resolvable (sometimes this is because of the naming schema and sometimes because there is no documentation). I have only updated the python3 part of
BuildPythonAPI.sh
because I only have a Linux machine to run Carla and I do not see a reason to support python2 (won't the support be dropped anyway with #2787?).Please have a look where the documentation doesn't look correct, I guess there are some edge cases I did not cover.
This change is