Re: c/c++ extensions and help()

2005-07-31 Thread Philip Austin
Robert Kern <[EMAIL PROTECTED]> writes:

> Lenny G. wrote:
>> Is there a way to make a c/c++ extension have a useful method
>> signature?  Right now, help(myCFunc) shows up like:
>> myCFunc(...)
>>   description of myCFunc
>> I'd like to be able to see:
>> myCFunc(myArg1, myArg2)
>>   description of myCFunc
>> Is this currently possible?
>
> There really isn't a way to let the inspect module know about
> extension function arguments. Just put it in the docstring.
>

The next release of boost.python should do this automatically:

(http://mail.python.org/pipermail/c++-sig/2005-July/009243.html)


>>> help(rational.lcm)

Help on built-in function lcm:

lcm(...)
C++ signature:
lcm(int, int) -> int

>>> help(rational.int().numerator)

Help on method numerator:

numerator(...) method of boost_rational_ext.int instance
C++ signature:
numerator(boost::rational {lvalue}) -> int


Regards, Phil
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: void * C array to a Numpy array using Swig

2006-01-12 Thread Philip Austin
"Travis E. Oliphant" <[EMAIL PROTECTED]> writes:

> Krish wrote:

> Yes, you are right that you need to use typemaps.  It's been awhile
> since I did this kind of thing, but here are some pointers.

Also, there's http://geosci.uchicago.edu/csc/numptr



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Which compiler will Python 2.5 / Windows (Intel) be built with?

2006-06-16 Thread Philip Austin
[EMAIL PROTECTED] writes:

>> This is the .NET 11 SDK, I belive it includes the 2003 compiler (*):
>
> Last time I checked the .NET SDK they had the C# compiler in there, but
> not the C++ optimizing 2003 compiler. Might be wrong though

I just downloaded and installed this, and see a directory called

c:\program files\microsoft visual studio .net 2003\vc7

with bin\cl.exe  and  lib and include directories.  So presumably
I'm good to go?  

I'm following this thread because I'll need to
compile and install some extensions I've written for linux/gcc/python2.4
in our Windows computer lab.   Presuming I succeed in setting up
vc7 correctly, is it as simple as 'python setup.py install' from here?

Thanks, Phil




-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Is there a way to push data into Ical from Python ?

2006-12-18 Thread Philip Austin
"The Night Blogger" <[EMAIL PROTECTED]> writes:

> Is there a way to pull & push data into (Apple Mac OS X Calendar) Ical from
> Python ?
>

see: http://vobject.skyhouseconsulting.com/

-- regards, Phil
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python advocacy in scientific computation

2006-03-09 Thread Philip Austin
Michael McNeil Forbes <[EMAIL PROTECTED]> writes:
>
> I find that version control (VC) has many advantages for
> scientific research (I am a physicist).
>

Greg Wilson also makes that point in this note:

http://www.nature.com/naturejobs/2005/050728/full/nj7050-600b.html

Where he describes his excellent (Python Software Foundation sponsored)
course on software carpentry for scientists:

http://www.third-bit.com/swc2/index.html

Regards, Phil
-- 
http://mail.python.org/mailman/listinfo/python-list