Update: KOBRA - .NET for Python

Chetan Gadgil cgjunkaddr at attbi.com
Thu Jan 30 02:50:37 EST 2003


I could write a native bool type for python so that .NET can distinguish
between ints and bools. (of course, there are more ways to do this e.g. wrap
in a python instance etc.), however, I have some more features in mind for
kobra - those that I need before bools. For me, whatever is not conveniently
doable in python I do in C# (e.g. the DotNetHelperLib.dll, WebServiceHelper
etc.)

I am going to start on callbacks to python sometime later (when I need)

For now, I will be using the library myself extensively for my .NET work and
will post updates/fixes as I need to make them.

Thanks again, for your comments/suggestions.

Regards
Chetan Gadgil


"Chetan Gadgil" <cgjunkaddr at attbi.com> wrote in message
news:FR3_9.86256$VU6.50446 at rwcrnsc52.ops.asp.att.net...
> Thanks for your comments.
>
> "System.Boolean" is returned as a boxed object. e.g. try something like:
> pointObj.IsEmpty()
>
> this will return a boxed object
>
> Int32 is mapped directly to python long (to and fro)
>
> You should not get any errors. (See the example to create a point - with
the
> constructor)
>
> ---
> Check out http://www.gadgil.net/DotNetWrapperForPython.htm for updated
docs.
> ---
>
> A new version is also avilable.
>
> Regards
> Chetan Gadgil
>
>
> "Kyle Yancey" <kyle at lakeofburningfire.org> wrote in message
> news:8kmg3vobt33v5ivfhdn4r115029gtn5o8t at 4ax.com...
> > It's nice that your not letting this project stagnate.  I'm suprised
> > at how often you've updated it since I started reading this newsgroup.
> > I have one request/suggestion.  It would be nice if I could declare
> > built-in types such as System.Boolean or System.Int32. I keep getting
> > debugger errors when I try.  Also, the same thing happens when I try
> > to declare a System.Reflection.Assembly object. Thanks for the
> > library.
> >
>
>






More information about the Python-list mailing list