Changeset 8

Show
Ignore:
Timestamp:
06/23/06 18:12:01 (6 years ago)
Author:
KirkMcDonald
Message:

Some type fixes and removal of debug stuff.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pyd/def.d

    r7 r8  
    2727private import pyd.ftype; 
    2828private import pyd.exception; 
    29 private import std.string, std.stdio
     29private import std.string
    3030 
    3131private 
     
    131131                ret = Py_None; 
    132132            } else { 
    133                 writefln("function type = %s", typeid(typeof(&fn))); 
    134                 writefln("ArgType!(fn_t, 1) = %s", typeid(ArgType!(fn_t, 1))); 
    135133                // Capture return value 
    136134                ret = _py( fn( 
  • trunk/pyd/make_object.d

    r7 r8  
    3131 * The former is handled by d_type, the latter by __py. The py function is 
    3232 * provided as a convenience to directly convert a D type into an instance of 
    33  * object. 
     33 * DPyObject. 
    3434 */ 
    3535module pyd.make_object; 
    36  
    37 private import std.stdio; 
    3836 
    3937private import python; 
     
    147145 * Constructs an object based on the type of the argument passed in. 
    148146 * 
    149  * For example, calling py(10) would return an object holding the value 10. 
    150  * 
    151  * Calling this with an object will return back a reference to the very same 
    152  * 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. 
    153151 * 
    154152 * Calling this with a PyObject* will "steal" the reference. 
  • trunk/pyd/type.d

    r7 r8  
    2121*/ 
    2222module pyd.type; 
     23 
     24/* 
     25This file is not currently used. It is from a previous version (DPyObject used 
     26to be called just "object", I changed it as it was too similar to D's Object), 
     27and I have yet to update it. 
     28*/ 
    2329 
    2430private import python;