Python: document writer.StructureField
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 10 Dec 2014 17:17:49 +0000 (12:17 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 17 Feb 2015 21:11:27 +0000 (16:11 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/writer.py

index 62ee2fba3405556fbee31471b645cdb43f4070c6..18bcb3cee5cecf940e5ce5c2cefff97d0854ce5e 100644 (file)
@@ -1324,9 +1324,16 @@ class FloatFieldingPoint(FloatingPointField):
 
 
 class StructureField(Field):
+    """
+    Structure field, based on a
+    :class:`StructureFieldDeclaration` object.
+    """
+
     def field(self, field_name):
         """
-        Get the structure's field corresponding to the provided field name.
+        Returns the structure :class:`Field` named *field_name*.
+
+        :exc:`ValueError` is raised on error.
         """
 
         native_instance = nbt._bt_ctf_field_structure_get_field(self._f,
This page took 0.025431 seconds and 4 git commands to generate.