Commits

ariovistus  committed fbb270b

updates to pyd api

  • Participants
  • Parent commits 2c492ac

Comments (0)

Files changed (13)

File multi_index.html

 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/Nameof.html

 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/class_wrap.html

 <div id="content"><script>explorer.initialize("pyd.class_wrap");</script>
 	<table class="content">
 		<tr><td id="docbody"><h1>pyd.class_wrap</h1><!-- Generated by Ddoc from ../pyd/infrastructure//pyd/class_wrap.d -->
-<br><br>
+Contains utilities for wrapping D classes.<br><br>
+
 
 <script>explorer.outline.incSymbolLevel();</script>
 <dl>
 <script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">struct 
-<span class="currsymbol">wrapped_class_object</span>
-<script>explorer.outline.addDecl('wrapped_class_object');</script>(T);
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>The class object, a subtype of PyObject<br><br>
-
-</dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">template 
-<span class="currsymbol">wrapped_class_type</span>
-<script>explorer.outline.addDecl('wrapped_class_type');</script>(T)</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd><br><br>
-
-<script>explorer.outline.incSymbolLevel();</script>
-<dl>
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">PyTypeObject 
-<span class="currsymbol">wrapped_class_type</span>
-<script>explorer.outline.addDecl('wrapped_class_type');</script>;
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>The type object, an instance of PyType_Type<br><br>
-
-</dd>
-</dl>
-<script>explorer.outline.decSymbolLevel();</script>
-</dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">template 
 <span class="currsymbol">is_wrapped</span>
 <script>explorer.outline.addDecl('is_wrapped');</script>(T)</span></dt>
 </dd>
 
 <script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">template 
-<span class="currsymbol">wrapped_methods</span>
-<script>explorer.outline.addDecl('wrapped_methods');</script>(T)</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>Various wrapped methods<br><br>
-
-
-<script>explorer.outline.incSymbolLevel();</script>
-<dl>
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">PyObject* 
-<span class="currsymbol">wrapped_new</span>
-<script>explorer.outline.addDecl('wrapped_new');</script>(PyTypeObject* <span class="funcparam">type</span>, PyObject* <span class="funcparam">args</span>, PyObject* <span class="funcparam">kwds</span>);
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>The generic "_new__" method<br><br>
-
-</dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">void 
-<span class="currsymbol">wrapped_dealloc</span>
-<script>explorer.outline.addDecl('wrapped_dealloc');</script>(PyObject* <span class="funcparam">self</span>);
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>The generic dealloc method.<br><br>
-
-</dd>
-</dl>
-<script>explorer.outline.decSymbolLevel();</script>
-</dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">template 
-<span class="currsymbol">wrapped_get</span>
-<script>explorer.outline.addDecl('wrapped_get');</script>(T,Parts)</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd><br><br>
-
-<script>explorer.outline.incSymbolLevel();</script>
-<dl>
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">PyObject* 
-<span class="currsymbol">func</span>
-<script>explorer.outline.addDecl('func');</script>(PyObject* <span class="funcparam">self</span>, void* <span class="funcparam">closure</span>);
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>A generic wrapper around a "getter" property.<br><br>
-
-</dd>
-</dl>
-<script>explorer.outline.decSymbolLevel();</script>
-</dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">template 
-<span class="currsymbol">wrapped_set</span>
-<script>explorer.outline.addDecl('wrapped_set');</script>(T,Parts)</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd><br><br>
-
-<script>explorer.outline.incSymbolLevel();</script>
-<dl>
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">int 
-<span class="currsymbol">func</span>
-<script>explorer.outline.addDecl('func');</script>(PyObject* <span class="funcparam">self</span>, PyObject* <span class="funcparam">value</span>, void* <span class="funcparam">closure</span>);
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>A generic wrapper around a "setter" property.<br><br>
-
-</dd>
-</dl>
-<script>explorer.outline.decSymbolLevel();</script>
-</dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">struct 
-<span class="currsymbol">DoNothing</span>
-<script>explorer.outline.addDecl('DoNothing');</script>;
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd><br><br>
-</dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">struct 
 <span class="currsymbol">Def</span>
-<script>explorer.outline.addDecl('Def');</script>(alias fn);
-<br>struct 
-<span class="currsymbol">Def</span>
-<script>explorer.outline.addDecl('Def');</script>(alias fn,string docstring);
-<br>struct 
-<span class="currsymbol">Def</span>
-<script>explorer.outline.addDecl('Def');</script>(alias fn,string name,string docstring);
-<br>struct 
-<span class="currsymbol">Def</span>
-<script>explorer.outline.addDecl('Def');</script>(alias fn,string name,fn_t);
-<br>struct 
-<span class="currsymbol">Def</span>
-<script>explorer.outline.addDecl('Def');</script>(alias fn,fn_t);
-<br>struct 
-<span class="currsymbol">Def</span>
-<script>explorer.outline.addDecl('Def');</script>(alias fn,fn_t,string docstring);
-<br>struct 
-<span class="currsymbol">Def</span>
-<script>explorer.outline.addDecl('Def');</script>(alias fn,string name,fn_t,string docstring);
+<script>explorer.outline.addDecl('Def');</script>(alias fn,Options...);
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
 <dd>Wraps a member function of the class.
 <td nowrap valign="top" style="padding-right: 8px">fn</td>
 <td>The member function to wrap.</td></tr>
 <tr>
-<td nowrap valign="top" style="padding-right: 8px">name</td>
-<td>The name of the function as it will appear in Python.</td></tr>
+<td nowrap valign="top" style="padding-right: 8px">Options</td>
+<td>Optional parameters. Takes Docstring!(docstring), PyName!(pyname),
+and fn_t.</td></tr>
 <tr>
 <td nowrap valign="top" style="padding-right: 8px">fn_t</td>
 <td>The type of the function. It is only useful to specify this
        if more than one function has the same name as this one.</td></tr>
 <tr>
+<td nowrap valign="top" style="padding-right: 8px">pyname</td>
+<td>The name of the function as it will appear in Python. Defaults to
+fn's name in D</td></tr>
+<tr>
 <td nowrap valign="top" style="padding-right: 8px">docstring</td>
-<td>The function's docstring.</td></tr>
+<td>The function's docstring. Defaults to "".</td></tr>
 </table><br>
 
 </dd>
 <script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">struct 
 <span class="currsymbol">StaticDef</span>
-<script>explorer.outline.addDecl('StaticDef');</script>(alias fn);
-<br>struct 
-<span class="currsymbol">StaticDef</span>
-<script>explorer.outline.addDecl('StaticDef');</script>(alias fn,string docstring);
-<br>struct 
-<span class="currsymbol">StaticDef</span>
-<script>explorer.outline.addDecl('StaticDef');</script>(alias fn,string name,string docstring);
-<br>struct 
-<span class="currsymbol">StaticDef</span>
-<script>explorer.outline.addDecl('StaticDef');</script>(alias fn,string name,fn_t,string docstring);
-<br>struct 
-<span class="currsymbol">StaticDef</span>
-<script>explorer.outline.addDecl('StaticDef');</script>(alias fn,fn_t);
-<br>struct 
-<span class="currsymbol">StaticDef</span>
-<script>explorer.outline.addDecl('StaticDef');</script>(alias fn,fn_t,string docstring);
-<br>struct 
-<span class="currsymbol">StaticDef</span>
-<script>explorer.outline.addDecl('StaticDef');</script>(alias fn,string name,fn_t);
-<br>struct 
-<span class="currsymbol">StaticDef</span>
-<script>explorer.outline.addDecl('StaticDef');</script>(alias fn,string name,fn_t);
-<br>struct 
-<span class="currsymbol">StaticDef</span>
-<script>explorer.outline.addDecl('StaticDef');</script>(alias fn,string name,fn_t,string docstring);
+<script>explorer.outline.addDecl('StaticDef');</script>(alias fn,Options...);
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
-<dd>Wraps a static member function of the class. Identical to pyd.def.def
+<dd>Wraps a static member function of the class. Similar to pyd.def.def
 <br><br>
 Supports default arguments, typesafe variadic arguments, and python's
 keyword arguments.
 <td nowrap valign="top" style="padding-right: 8px">fn</td>
 <td>The member function to wrap.</td></tr>
 <tr>
-<td nowrap valign="top" style="padding-right: 8px">name</td>
-<td>The name of the function as it will appear in Python.</td></tr>
+<td nowrap valign="top" style="padding-right: 8px">Options</td>
+<td>Optional parameters. Takes Docstring!(docstring), PyName!(pyname),
+and fn_t</td></tr>
 <tr>
 <td nowrap valign="top" style="padding-right: 8px">fn_t</td>
 <td>The type of the function. It is only useful to specify this
        if more than one function has the same name as this one.</td></tr>
 <tr>
+<td nowrap valign="top" style="padding-right: 8px">pyname</td>
+<td>The name of the function as it will appear in Python. Defaults to fn's
+name in D.</td></tr>
+<tr>
 <td nowrap valign="top" style="padding-right: 8px">docstring</td>
-<td>The function's docstring.</td></tr>
+<td>The function's docstring. Defaults to "".</td></tr>
 </table><br>
 
 </dd>
 <script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">struct 
 <span class="currsymbol">Property</span>
-<script>explorer.outline.addDecl('Property');</script>(alias fn);
-<br>struct 
-<span class="currsymbol">Property</span>
-<script>explorer.outline.addDecl('Property');</script>(alias fn,string docstring);
-<br>struct 
-<span class="currsymbol">Property</span>
-<script>explorer.outline.addDecl('Property');</script>(alias fn,string name,string docstring);
-<br>struct 
-<span class="currsymbol">Property</span>
-<script>explorer.outline.addDecl('Property');</script>(alias fn,string name,bool RO);
-<br>struct 
-<span class="currsymbol">Property</span>
-<script>explorer.outline.addDecl('Property');</script>(alias fn,string name,bool RO,string docstring);
-<br>struct 
-<span class="currsymbol">Property</span>
-<script>explorer.outline.addDecl('Property');</script>(alias fn,bool RO);
-<br>struct 
-<span class="currsymbol">Property</span>
-<script>explorer.outline.addDecl('Property');</script>(alias fn,bool RO,string docstring);
+<script>explorer.outline.addDecl('Property');</script>(alias fn,Options...);
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
 <dd>Wraps a property of the class.
 <br><br>
-Will automatically attempt to wrap both the get and set forms of the property,
-unless RO is specified. Does not work with @property annotated functions. Does not support a "set-only" property.
-
-<br><br>
 <b>Params:</b><br>
 <table><tr>
 <td nowrap valign="top" style="padding-right: 8px">fn</td>
 <td>The property to wrap.</td></tr>
 <tr>
-<td nowrap valign="top" style="padding-right: 8px">name</td>
-<td>The name of the property as it will appear in Python.</td></tr>
+<td nowrap valign="top" style="padding-right: 8px">Options</td>
+<td>Optional parameters. Takes Docstring!(docstring), PyName!(pyname),
+and Mode!(mode)</td></tr>
 <tr>
-<td nowrap valign="top" style="padding-right: 8px">RO</td>
-<td>Whether this is a read-only property.</td></tr>
+<td nowrap valign="top" style="padding-right: 8px">pyname</td>
+<td>The name of the property as it will appear in Python. Defaults to
+fn's name in D.</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">mode</td>
+<td>specifies whether this property is readable, writable. possible values
+are "r", "w", "rw", and "" (in the latter case, automatically determine which
+mode to use based on availability of getter and setter forms of fn). Defaults
+to "".</td></tr>
 <tr>
 <td nowrap valign="top" style="padding-right: 8px">docstring</td>
-<td>The function's docstring.</td></tr>
+<td>The function's docstring. Defaults to "".</td></tr>
 </table><br>
 
 </dd>
 <script>explorer.outline.addDecl('Repr');</script>(alias _fn);
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
-<dd>Wraps a method as the class's _repr__ in Python.
+<dd>Wraps a method as the class's __repr__ in Python.
 <br><br>
 <b>Params:</b><br>
 <table><tr>
 <span class="currsymbol">Len</span>
 <script>explorer.outline.addDecl('Len');</script>(alias fn)</span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
-<dd>Wraps Foo.length or another function as pythons _len__ function. Do not
-  pass a @property annotated function.
+<dd>Wraps Foo.length or another function as python's __len__ function.
 <br><br>
 Requires signature
 <pre class="d_code">Py_ssize_t length();
 <script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">void 
 <span class="currsymbol">wrap_class</span>
-<script>explorer.outline.addDecl('wrap_class');</script>(T, Params...)(string <span class="funcparam">docstring</span> = "", string <span class="funcparam">modulename</span> = "");
+<script>explorer.outline.addDecl('wrap_class');</script>(T, Params...)();
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
 <dd>Wrap a class.
 <td>The class being wrapped.</td></tr>
 <tr>
 <td nowrap valign="top" style="padding-right: 8px">Params</td>
-<td>Definitions of members of T to be wrapped.</td></tr>
+<td>Mixture of definitions of members of T to be wrapped and
+    optional arguments.
+    Concerning optional arguments, accepts PyName!(pyname), ModuleName!(modulename), and Docstring!(docstring).</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">pyname</td>
+<td>The name of the class as it will appear in Python. Defaults to
+    T's name in D</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">modulename</td>
+<td>The name of the python module in which the wrapped class
+            resides. Defaults to "".</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">docstring</td>
+<td>The class's docstring. Defaults to "".</td></tr>
 </table><br>
 
 </dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">PyObject* 
-<span class="currsymbol">WrapPyObject_FromTypeAndObject</span>
-<script>explorer.outline.addDecl('WrapPyObject_FromTypeAndObject');</script>(T)(PyTypeObject* <span class="funcparam">type</span>, T <span class="funcparam">t</span>);
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>Returns a new Python object of a wrapped type.<br><br>
-
-</dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">T 
-<span class="currsymbol">WrapPyObject_AsObject</span>
-<script>explorer.outline.addDecl('WrapPyObject_AsObject');</script>(T)(PyObject* <span class="funcparam">_self</span>);
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>Returns the object contained in a Python wrapped type.<br><br>
-
-</dd>
-
-<script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">void 
-<span class="currsymbol">WrapPyObject_SetObj</span>
-<script>explorer.outline.addDecl('WrapPyObject_SetObj');</script>(T)(PyObject* <span class="funcparam">_self</span>, T <span class="funcparam">t</span>);
-</span></dt>
-<script>explorer.outline.writeEnabled = false;</script>
-<dd>Sets the contained object in self to t.<br><br>
-
-</dd>
 </dl>
 <script>explorer.outline.decSymbolLevel();</script>
 </td></tr>
 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/def.html

 <script>explorer.outline.incSymbolLevel();</script>
 <dl>
 <script>explorer.outline.writeEnabled = true;</script>
+<dt><span class="decl">struct 
+<span class="currsymbol">ModuleName</span>
+<script>explorer.outline.addDecl('ModuleName');</script>(string _modulename);
+</span></dt>
+<script>explorer.outline.writeEnabled = false;</script>
+<dd>Param of def<br><br>
+
+</dd>
+
+<script>explorer.outline.writeEnabled = true;</script>
+<dt><span class="decl">struct 
+<span class="currsymbol">Docstring</span>
+<script>explorer.outline.addDecl('Docstring');</script>(string _doc);
+</span></dt>
+<script>explorer.outline.writeEnabled = false;</script>
+<dd>Param of def, Def, StaticDef<br><br>
+
+</dd>
+
+<script>explorer.outline.writeEnabled = true;</script>
+<dt><span class="decl">struct 
+<span class="currsymbol">PyName</span>
+<script>explorer.outline.addDecl('PyName');</script>(string _name);
+</span></dt>
+<script>explorer.outline.writeEnabled = false;</script>
+<dd>Param of def, Def, StaticDef<br><br>
+
+</dd>
+
+<script>explorer.outline.writeEnabled = true;</script>
+<dt><span class="decl">struct 
+<span class="currsymbol">Mode</span>
+<script>explorer.outline.addDecl('Mode');</script>(string _mode);
+</span></dt>
+<script>explorer.outline.writeEnabled = false;</script>
+<dd>Param of Property, Member<br><br>
+
+</dd>
+
+<script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">void 
 <span class="currsymbol">def</span>
-<script>explorer.outline.addDecl('def');</script>(alias fn, string name = __traits(identifier,fn), fn_t = typeof(&amp;fn))(string <span class="funcparam">docstring</span> = "");
-<br>void 
-<span class="currsymbol">def</span>
-<script>explorer.outline.addDecl('def');</script>(string modulename, alias _fn, fn_t = typeof(&amp;_fn), string name = __traits(identifier,_fn))(string <span class="funcparam">docstring</span>);
+<script>explorer.outline.addDecl('def');</script>(alias _fn, Options...)();
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
 <dd>Wraps a D function, making it callable from Python.
 <br><br>
 <b>Params:</b><br>
 <table><tr>
+<td nowrap valign="top" style="padding-right: 8px">fn</td>
+<td>The function to wrap.</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">Options</td>
+<td>Optional parameters. Takes Docstring!(docstring), PyName!(pyname), ModuleName!(modulename), and fn_t</td></tr>
+<tr>
 <td nowrap valign="top" style="padding-right: 8px">modulename</td>
 <td>The name of the python module in which the wrapped function
             resides.</td></tr>
 <tr>
-<td nowrap valign="top" style="padding-right: 8px">fn</td>
-<td>The function to wrap.</td></tr>
-<tr>
-<td nowrap valign="top" style="padding-right: 8px">name</td>
+<td nowrap valign="top" style="padding-right: 8px">pyname</td>
 <td>The name of the function as it will appear in Python.</td></tr>
 <tr>
 <td nowrap valign="top" style="padding-right: 8px">fn_t</td>
             otherwise the first one defined lexically will be used.</td></tr>
 <tr>
 <td nowrap valign="top" style="padding-right: 8px">docstring</td>
-<td>The function's docstring. Note that this is a regular function
-            argument!</td></tr>
+<td>The function's docstring.</td></tr>
 </table><br>
 <b>Examples:</b><br>
-<pre class="d_code">import pyd.pyd;
-string foo(int i) {
-    if (i &gt; 10) {
-        return "It's greater than 10!";
-    } else {
-        return "It's less than 10!";
+<pre class="d_code"><font color=blue>import</font> pyd.pyd;
+string foo(<font color=blue>int</font> i) {
+    <font color=blue>if</font> (i &gt; 10) {
+        <font color=blue>return</font> <font color=red>"It's greater than 10!"</font>;
+    } <font color=blue>else</font> {
+        <font color=blue>return</font> <font color=red>"It's less than 10!"</font>;
     }
 }
-extern (C)
-export void inittestdll() {
-    def!("foo", foo);
-    module_init("testdll");
-}</pre>
+<font color=blue>extern</font> (C)
+<font color=blue>export</font> <font color=blue>void</font> inittestdll() {
+    <u>def</u>!(foo, ModuleName!<font color=red>"testdll"</font>);
+    add_module(<font color=red>"testdll"</font>);
+}
+</pre>
  And in Python:
 <pre class="d_code">&gt;&gt;&gt; import testdll
 &gt;&gt;&gt; print testdll.foo(20)
 <script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">PyObject* 
 <span class="currsymbol">add_module</span>
-<script>explorer.outline.addDecl('add_module');</script>(string <span class="funcparam">name</span>, string <span class="funcparam">docstring</span> = "");
+<script>explorer.outline.addDecl('add_module');</script>(string <span class="funcparam">modulename</span>, string <span class="funcparam">docstring</span> = "");
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
 <dd>Module initialization function. Should be called after the last call to def.<br><br>
 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/embedded.html

 <script>explorer.outline.addDecl('PyDef');</script>(string python, string modl, R, Args...)(Args <span class="funcparam">args</span>, string <span class="funcparam">file</span> = __FILE__, size_t <span class="funcparam">line</span> = __LINE__);
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
-<dd>Take a python function and wrap it so we can call it from D!<br><br>
+<dd>Wraps a python function (specified as a string) as a D function roughly of
+signature
+<br><br>
+R function(Args)
+
+<br><br>
+<b>Params:</b><br>
+<table><tr>
+<td nowrap valign="top" style="padding-right: 8px">python</td>
+<td>a python function</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">modl</td>
+<td>context in which to run expression. must be a python module name.</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">R</td>
+<td>return type of d function</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">Args</td>
+<td>argument types of d function</td></tr>
+</table><br>
 
 </dd>
 
 <script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">T 
 <span class="currsymbol">PyEval</span>
-<script>explorer.outline.addDecl('PyEval');</script>(T = PydObject)(string <span class="funcparam">python</span>, string <span class="funcparam">modl</span>, string <span class="funcparam">file</span> = __FILE__, size_t <span class="funcparam">line</span> = __LINE__);
+<script>explorer.outline.addDecl('PyEval');</script>(T = PydObject)(string <span class="funcparam">python</span>, string <span class="funcparam">modl</span> = "", string <span class="funcparam">file</span> = __FILE__, size_t <span class="funcparam">line</span> = __LINE__);
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
-<dd>Evaluate a python expression once and return the result.<br><br>
+<dd>Evaluate a python expression once and return the result.
+<br><br>
+<b>Params:</b><br>
+<table><tr>
+<td nowrap valign="top" style="padding-right: 8px">python</td>
+<td>a python expression</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">modl</td>
+<td>context in which to run expression. either a python module name, or "".</td></tr>
+</table><br>
 
 </dd>
 
 <script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">void 
 <span class="currsymbol">PyStmts</span>
-<script>explorer.outline.addDecl('PyStmts');</script>(string <span class="funcparam">python</span>, string <span class="funcparam">modl</span>, string <span class="funcparam">file</span> = __FILE__, size_t <span class="funcparam">line</span> = __LINE__);
+<script>explorer.outline.addDecl('PyStmts');</script>(string <span class="funcparam">python</span>, string <span class="funcparam">modl</span> = "", string <span class="funcparam">file</span> = __FILE__, size_t <span class="funcparam">line</span> = __LINE__);
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
-<dd>Evaluate one or more <span class="funcparam">python</span> statements once.<br><br>
+<dd>Evaluate one or more <span class="funcparam">python</span> statements once.
+<br><br>
+<b>Params:</b><br>
+<table><tr>
+<td nowrap valign="top" style="padding-right: 8px">string <span class="funcparam">python</span></td>
+<td><span class="funcparam">python</span> statements</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">string <span class="funcparam">modl</span></td>
+<td>context in which to run expression. either a <span class="funcparam">python</span> module name, or "".</td></tr>
+</table><br>
 
 </dd>
 </dl>
 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/exception.html

 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/func_wrap.html

 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/make_object.html

 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/pyd.html

 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/pydobject.html

 </dd>
 
 <script>explorer.outline.writeEnabled = true;</script>
-<dt><span class="decl">@property PyObject_BorrowedRef* 
+<dt><span class="decl">@property Borrowed!(PyObject)* 
 <span class="currsymbol">ptr</span>
 <script>explorer.outline.addDecl('ptr');</script>();
 </span></dt>
 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/python.html

 
 <script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">struct 
-<span class="currsymbol">PyObject_BorrowedRef</span>
-<script>explorer.outline.addDecl('PyObject_BorrowedRef');</script>;
+<span class="currsymbol">Borrowed</span>
+<script>explorer.outline.addDecl('Borrowed');</script>(T);
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
 <dd>Not part of Python api!!! <br><br>
 <script>explorer.outline.writeEnabled = true;</script>
 <dt><span class="decl">int 
 <span class="currsymbol">PyLong_Check</span>
-<script>explorer.outline.addDecl('PyLong_Check');</script>()(op);
+<script>explorer.outline.addDecl('PyLong_Check');</script>()(PyObject* <span class="funcparam">op</span>);
 </span></dt>
 <script>explorer.outline.writeEnabled = false;</script>
 <dd><br><br>
 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File pyd/struct_wrap.html

 	<table class="content">
 		<tr><td id="docbody"><h1>pyd.struct_wrap</h1><!-- Generated by Ddoc from ../pyd/infrastructure//pyd/struct_wrap.d -->
 <br><br>
+
+<script>explorer.outline.incSymbolLevel();</script>
+<dl>
+<script>explorer.outline.writeEnabled = true;</script>
+<dt><span class="decl">struct 
+<span class="currsymbol">Member</span>
+<script>explorer.outline.addDecl('Member');</script>(string name,Options...);
+</span></dt>
+<script>explorer.outline.writeEnabled = false;</script>
+<dd>Wrap a member variable of a class or struct.
+<br><br>
+<b>Params:</b><br>
+<table><tr>
+<td nowrap valign="top" style="padding-right: 8px">name</td>
+<td>The name of the member to wrap</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">Options</td>
+<td>Optional parameters. Takes Docstring!(docstring), PyName!(pyname),
+and Mode!(mode)</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">pyname</td>
+<td>The name of the member as it will appear in Python. Defaults to name</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">mode</td>
+<td>specifies whether this member is readable, writable. possible values
+are "r", "w", "rw". Defaults to "rw".</td></tr>
+<tr>
+<td nowrap valign="top" style="padding-right: 8px">docstring</td>
+<td>The function's docstring. Defaults to "".</td></tr>
+</table><br>
+
+</dd>
+
+<script>explorer.outline.writeEnabled = true;</script>
+<dt><span class="decl">alias 
+<span class="currsymbol">wrap_struct</span>
+<script>explorer.outline.addDecl('wrap_struct');</script>;
+</span></dt>
+<script>explorer.outline.writeEnabled = false;</script>
+<dd>Wrap a struct.<br><br>
+
+</dd>
+</dl>
+<script>explorer.outline.decSymbolLevel();</script>
 </td></tr>
 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:04 2012
+			on Thu Sep  6 22:58:08 2012
 
 		</td></tr>
 	</table>

File replace.html

 		<tr><td id="docfooter">
 			Page was generated with
 			<img src="/candydoc/img/candydoc.gif" style="vertical-align:middle; position:relative; top:-1px">
-			on Thu Aug 30 19:46:05 2012
+			on Thu Sep  6 22:58:09 2012
 
 		</td></tr>
 	</table>