[Bf-blender-cvs] [ee15db9] master: Fix T38150: BMLayerCollection.items/values docs switched

Campbell Barton noreply at git.blender.org
Fri Jan 10 12:18:45 CET 2014


Commit: ee15db9db595ca47412664e3cb291dc23b73b0a4
Author: Campbell Barton
Date:   Fri Jan 10 22:17:33 2014 +1100
https://developer.blender.org/rBee15db9db595ca47412664e3cb291dc23b73b0a4

Fix T38150: BMLayerCollection.items/values docs switched

===================================================================

M	source/blender/python/bmesh/bmesh_py_types_customdata.c

===================================================================

diff --git a/source/blender/python/bmesh/bmesh_py_types_customdata.c b/source/blender/python/bmesh/bmesh_py_types_customdata.c
index 0ba08f3..dec7812 100644
--- a/source/blender/python/bmesh/bmesh_py_types_customdata.c
+++ b/source/blender/python/bmesh/bmesh_py_types_customdata.c
@@ -460,13 +460,13 @@ static PyObject *bpy_bmlayercollection_keys(BPy_BMLayerCollection *self)
 }
 
 PyDoc_STRVAR(bpy_bmlayercollection_values_doc,
-".. method:: items()\n"
+".. method:: values()\n"
 "\n"
-"   Return the identifiers of collection members\n"
-"   (matching pythons dict.items() functionality).\n"
+"   Return the values of collection\n"
+"   (matching pythons dict.values() functionality).\n"
 "\n"
-"   :return: (key, value) pairs for each member of this collection.\n"
-"   :rtype: list of tuples\n"
+"   :return: the members of this collection.\n"
+"   :rtype: list\n"
 );
 static PyObject *bpy_bmlayercollection_values(BPy_BMLayerCollection *self)
 {
@@ -497,13 +497,13 @@ static PyObject *bpy_bmlayercollection_values(BPy_BMLayerCollection *self)
 }
 
 PyDoc_STRVAR(bpy_bmlayercollection_items_doc,
-".. method:: values()\n"
+".. method:: items()\n"
 "\n"
-"   Return the values of collection\n"
-"   (matching pythons dict.values() functionality).\n"
+"   Return the identifiers of collection members\n"
+"   (matching pythons dict.items() functionality).\n"
 "\n"
-"   :return: the members of this collection.\n"
-"   :rtype: list\n"
+"   :return: (key, value) pairs for each member of this collection.\n"
+"   :rtype: list of tuples\n"
 );
 static PyObject *bpy_bmlayercollection_items(BPy_BMLayerCollection *self)
 {




More information about the Bf-blender-cvs mailing list