Python Extension winth C++ Problematic :(

2006-08-03 Thread Chandrashekhar kaushik
HiI have been working getting my C++ code to be used in Python ( Basically Extending )This is the problem i am facing rite now.I have a function that returns a Pointer to a class in my C++ CodeIt looks like this SLSocket* SLSocket::accept( SLHostInfo& client ){    socklen_t    addrlen = sizeof( st

SWIG Python Extension winth C++ Problematic

2006-08-03 Thread Chandrashekhar kaushik
someone ??On 8/4/06, Chandrashekhar kaushik <[EMAIL PROTECTED]> wrote: HiI have been working getting my C++ code to be used in Python ( Basically Extending )This is the problem i am facing rite now.I have a function that returns a Pointer to a class in my C++ Code It looks like this SL

Re: SWIG Python Extension winth C++ Problematic

2006-08-04 Thread Chandrashekhar kaushik
Hi skipthanks for replying I made a small test case that fails with a similar problem This is how it looks 1. Two simple classes A and B , each holds an integer.2. A has a function getB() that returns pointer to B. /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\#ifndef __AB_H__#define __AB_H__c

to py or not to py ?

2006-06-27 Thread Chandrashekhar kaushik
HI all I have the following prob.I am to write a parallel vis application .I wud have by default used C++ for the same but somehow thought if py cud help me ..It does as in many things that i would otherwise have written down already exists ... ( like built in classes for sockets , threading etc )I

Re: to py or not to py ?

2006-06-28 Thread Chandrashekhar kaushik
6/28/06, Steve Holden <[EMAIL PROTECTED]> wrote: Serge Orlov wrote:> On 6/27/06, Chandrashekhar kaushik <[EMAIL PROTECTED]> wrote:[...]>>also is it actually a good idea to write high perf applications in python ? >>> Take a look at Mercurial <http://www.selenic.com/

Re: to py or not to py ?

2006-06-28 Thread Chandrashekhar kaushik
The first thread immediately goes back to listening for new connections.  On 6/28/06, Robert Kern <[EMAIL PROTECTED]> wrote: Chandrashekhar kaushik wrote:> okay> so much for a few spelling errors and abbreviations used by me !!> we are losing the main point !> i had a look at mercur

pickling and endianess

2006-08-24 Thread Chandrashekhar kaushik
Can an object pickled and saved on a little-endian machine be unpickledon a big-endian machine ? Does python handle this in some manner  , by say having a flag to indicatethe endianess of the machine on which the object was pickled ?  And then using this flag to decide how that data will be unpick

Re: pickling and endianess

2006-08-24 Thread Chandrashekhar Kaushik
its getting daunting as i am not that proficient in python :( .On 8/25/06, Tim Peters < [EMAIL PROTECTED]> wrote:[Chandrashekhar kaushik]> Can an object pickled and saved on a little-endian machine be unpickled > on a big-endian machine ?Yes.  The pickle format is platform-indepen

Re: pickling and endianess

2006-08-24 Thread Chandrashekhar Kaushik
remote end :) On 8/25/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote: At Friday 25/8/2006 03:17, Chandrashekhar Kaushik wrote:>I am actually looking to implement serialization routines in C++.>An am facing the problem of how to tackle endianess and sizeof issues.> >Could you giv

Re: pickling and endianess

2006-08-24 Thread Chandrashekhar Kaushik
>> What about old ASCII?    The data is large .it also contains floats & double , so ascii will cause two problems -> loss of precision and the data will bloat  --shekhar -- http://mail.python.org/mailman/listinfo/python-list