, \
%endif
% endfor
-)
+):
+ # Python wrapper for ${node.symbol}()
</code></synopsis>
${formatter.format(node, node.doc)}
<synopsis><code mime="text/x-python">
@accepts(gint, gfloat, gboolean, gpointer, utf8)
@returns(gboolean)
-def method(first_arg, second_arg, boolean_arg, pointer_arg, string)
+def method(first_arg, second_arg, boolean_arg, pointer_arg, string):
+ # Python wrapper for doc_examples_obj_method()
</code></synopsis>
<p>This is an example of how to document a method.</p><p>You should call this on a <link xref="DocExamples.Obj">DocExamples.Obj</link> that was
created with <link xref="DocExamples.Obj.new">Obj.new</link>.</p><p>This should be a %FALSEALARM.</p>
<synopsis><code mime="text/x-python">
@accepts(gint)
@returns(gboolean)
-def static_method(out_arg)
+def static_method(out_arg):
+ # Python wrapper for doc_examples_obj_static_method()
</code></synopsis>
<p>This is an example of a function with an out argument
and a return value.</p>
<synopsis><code mime="text/x-python">
@accepts(gint)
@returns([gint])
-def array_function(out_len)
+def array_function(out_len):
+ # Python wrapper for doc_examples_array_function()
</code></synopsis>
<p>This function returns an array with an explicit length,
and the length should be invisible in most introspected bindings.</p>
<synopsis><code mime="text/x-python">
@accepts(DocExamples.Callback, gpointer, GLib.DestroyNotify)
@returns(none)
-def callback_function(callback, user_data, destroy_notify)
+def callback_function(callback, user_data, destroy_notify):
+ # Python wrapper for doc_examples_callback_function()
</code></synopsis>
<p>This is a function that takes a callback. Different languages
will expose this in different ways (e.g. Python keeps the