Changeset 8
- Timestamp:
- 06/23/06 18:12:01 (6 years ago)
- Files:
-
- trunk/pyd/def.d (modified) (2 diffs)
- trunk/pyd/make_object.d (modified) (2 diffs)
- trunk/pyd/type.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pyd/def.d
r7 r8 27 27 private import pyd.ftype; 28 28 private import pyd.exception; 29 private import std.string , std.stdio;29 private import std.string; 30 30 31 31 private … … 131 131 ret = Py_None; 132 132 } else { 133 writefln("function type = %s", typeid(typeof(&fn)));134 writefln("ArgType!(fn_t, 1) = %s", typeid(ArgType!(fn_t, 1)));135 133 // Capture return value 136 134 ret = _py( fn( trunk/pyd/make_object.d
r7 r8 31 31 * The former is handled by d_type, the latter by __py. The py function is 32 32 * provided as a convenience to directly convert a D type into an instance of 33 * object.33 * DPyObject. 34 34 */ 35 35 module pyd.make_object; 36 37 private import std.stdio;38 36 39 37 private import python; … … 147 145 * Constructs an object based on the type of the argument passed in. 148 146 * 149 * For example, calling py(10) would return a n object holding the value 10.150 * 151 * Calling this with a n object will return back a reference to the very same152 * object.147 * For example, calling py(10) would return a DPyObject holding the value 10. 148 * 149 * Calling this with a DPyObject will return back a reference to the very same 150 * DPyObject. 153 151 * 154 152 * Calling this with a PyObject* will "steal" the reference. trunk/pyd/type.d
r7 r8 21 21 */ 22 22 module pyd.type; 23 24 /* 25 This file is not currently used. It is from a previous version (DPyObject used 26 to be called just "object", I changed it as it was too similar to D's Object), 27 and I have yet to update it. 28 */ 23 29 24 30 private import python;
