== Python API docs ==
(sphinx_doc_gen.py) - file reorganization to use more functions (easier to read) - adapting to work after a recent commit that made some of the members of bpy.app.* output bytes instead of strings (see [#30154]) - a couple of new command line optionsto avoid editing the script: -T: let you choose the sphinx theme: the theme dir get copied in the destination dir -b: choose if we want the bpy module page or not Current command line arguments optional arguments: -h, --help show this help message and exit -o OUTPUT_DIR, --output OUTPUT_DIR Path of the API docs (default=<script dir>) -T SPHINX_THEME, --sphinxtheme SPHINX_THEME Sphinx theme (default='default') -f, --fullrebuild Rewrite all rst files in sphinx-in/ (default=False) -t, --testdump Dumps a small part of the API (default=False) -b, --bpy Write the rst file of the bpy module (default=False) (rst/info_best_practice.rst) - fixed a typo
This commit is contained in:
@@ -264,7 +264,7 @@ if your unsure whether the text is upper or lower case use lower or upper string
|
||||
Use try/except Sparingly
|
||||
------------------------
|
||||
|
||||
The **try** statement useful to save time writing error checking code.
|
||||
The **try** statement is useful to save time writing error checking code.
|
||||
|
||||
However **try** is significantly slower then an **if** since an exception has to be set each time, so avoid using **try** in areas of your code that execute in a loop and runs many times.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user