[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42224] trunk/blender/doc/python_api/rst/ info_best_practice.rst: corrections for docs

Campbell Barton ideasman42 at gmail.com
Mon Nov 28 18:19:31 CET 2011


Revision: 42224
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42224
Author:   campbellbarton
Date:     2011-11-28 17:19:25 +0000 (Mon, 28 Nov 2011)
Log Message:
-----------
corrections for docs

Modified Paths:
--------------
    trunk/blender/doc/python_api/rst/info_best_practice.rst

Modified: trunk/blender/doc/python_api/rst/info_best_practice.rst
===================================================================
--- trunk/blender/doc/python_api/rst/info_best_practice.rst	2011-11-28 17:10:32 UTC (rev 42223)
+++ trunk/blender/doc/python_api/rst/info_best_practice.rst	2011-11-28 17:19:25 UTC (rev 42224)
@@ -39,7 +39,7 @@
 
   .. 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 @@
 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.
 




More information about the Bf-blender-cvs mailing list