Browse files

added example with %pythonbegin

This was requested in PR #7 but overlooked. Contains an example where
one does: from __future__ import absolute_import using %pythonbegin
  • Loading branch information...
1 parent ae7b34c commit 0ed98c0606d2a46660902437b9fa4cdef14dfc97 @ptomulik ptomulik committed with wsfulton Dec 24, 2013
Showing with 9 additions and 1 deletion.
  1. +9 −1 Doc/Manual/Python.html
@@ -5551,7 +5551,15 @@
<p>at the very beginning of his proxy <tt>*.py</tt> file. In SWIG, it may be
-accomplished with <tt>%pythonbegin</tt> directive.</p>
+accomplished with <tt>%pythonbegin</tt> directive as follows:</p>
+<div class="code">
+%pythonbegin %{
+from __future__ import absolute_import
<H3><a name="Python_importfrominit"></a>34.11.4 Importing from</H3>

0 comments on commit 0ed98c0

Please sign in to comment.