Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-11-29 10:58:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-11-29 10:58:16 +0400
commit5380545c9780c8aabf050f0bdd4a547f45d9794e (patch)
tree0dca31a32af4cf3b6c53ab984a856dbf224c4931 /doc
parente3c6e47a382e6a8c92482cda048b396e0e9cc581 (diff)
parent3f57c06c7b8f01e16109c8bdbaba9643fe380d3c (diff)
svn merge ^/trunk/blender -r42221:42245
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/info_best_practice.rst4
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.