diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-28 21:19:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-28 21:19:25 +0400 |
commit | 9aaa67cc4c4e1116dffe802969ea3a17ff88e4d8 (patch) | |
tree | 35dc2331835d4eee6539835eadeab9e0468f3a2f | |
parent | f64189573d70422fd4b98e2c204b2d2478d2b5d3 (diff) |
corrections for docs
-rw-r--r-- | doc/python_api/rst/info_best_practice.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/rst/info_best_practice.rst b/doc/python_api/rst/info_best_practice.rst index 180a9fd1aa3..f4daed9ad9f 100644 --- a/doc/python_api/rst/info_best_practice.rst +++ b/doc/python_api/rst/info_best_practice.rst @@ -39,7 +39,7 @@ As well as pep8 we have other conventions used for blender python scripts. .. code-block:: python - bpy.context.scene.render.file_format = 'PNG' + bpy.context.scene.render.image_settings.file_format = 'PNG' bpy.context.scene.render.filepath = "//render_out" * pep8 also defines that lines should not exceed 79 characters, we felt this is too restrictive so this is optional per script. @@ -181,7 +181,7 @@ When removing many items in a large list this can provide a good speedup. Avoid Copying Lists ^^^^^^^^^^^^^^^^^^^ -When passing a list/dictionary to a function, it is faster to have the function modify the list rather then returning a new list so python dosn't have tp duplicate the list in memory. +When passing a list/dictionary to a function, it is faster to have the function modify the list rather then returning a new list so python doesn't have to duplicate the list in memory. Functions that modify a list in-place are more efficient then functions that create new lists. |