From: Tim Peters <[EMAIL PROTECTED]>
Reply-To: Tim Peters <[EMAIL PROTECTED]>
To: python-list@python.org
Subject: Re: Tuple size and memory allocation for embedded Python
Date: Fri, 21 Jan 2005 17:51:21 -0500
[Jinming Xu]
>> Python seems unstable, when allocating big memory. F
[Jinming Xu]
>> Python seems unstable, when allocating big memory. For
>> example, the following C++ code creates a tuple of tuples:
>>
>> PyObject* arCoord = PyTuple_New(n);
>> double d = 1.5;
>> for(int i=0; i> {
>> PyObject* coord = PyTuple_New(2);
>> PyTuple_SetItem(coord
On Fri, 2005-01-21 at 17:20 -0500, Steve Holden wrote:
> Jinming Xu wrote:
>
> > Hi Folks,
> >
> > Python seems unstable, when allocating big memory. For example, the
> > following C++ code creates a tuple of tuples:
> >
> > PyObject* arCoord = PyTuple_New(n);
> > double d = 1.5;
> > for(in
Jinming Xu wrote:
Hi Folks,
Python seems unstable, when allocating big memory. For example, the
following C++ code creates a tuple of tuples:
PyObject* arCoord = PyTuple_New(n);
double d = 1.5;
for(int i=0; i
When the n is small, say 100, the code works fine. when n is big, say
10,000, Pyth
On Fri, 2005-01-21 at 16:03 -0600, Jinming Xu wrote:
> Hi Folks,
>
> Python seems unstable, when allocating big memory. For example, the
> following C++ code creates a tuple of tuples:
>
> PyObject* arCoord = PyTuple_New(n);
> double d = 1.5;
> for(int i=0; i {
> PyObject* coord