Python: document writer.VariantField
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 10 Dec 2014 17:18:14 +0000 (12:18 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 17 Feb 2015 21:11:39 +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 18bcb3cee5cecf940e5ce5c2cefff97d0854ce5e..06664808f0d4088f6c36129424ecccc309981bbc 100644 (file)
@@ -1346,9 +1346,17 @@ class StructureField(Field):
 
 
 class VariantField(Field):
+    """
+    Variant field, based on a
+    :class:`VariantFieldDeclaration` object.
+    """
+
     def field(self, tag):
         """
-        Return the variant's selected field. The "tag" field is the selector enum field.
+        Returns the :class:`Field` selected by the current label of
+        *tag* (:class:`EnumerationField`).
+
+        :exc:`ValueError` is raised on error.
         """
 
         native_instance = nbt._bt_ctf_field_variant_get_field(self._f, tag._f)
This page took 0.025288 seconds and 4 git commands to generate.