I am trying to define class, where if I use a statement a = b, then instead of
"a" pointing to the same instance as "b", it should point to a copy of "b", but
I can't get it right.
Currently, I have the following:
class myclass(object):
def __init__(self, name='')
Hi,
I am trying to read a file into memory. The size of the file is around 1 GB. I
have a 3GB memory PC and the Windows Task Manager shows 2.3 GB available
physical memory when I was trying to read the file. I tried to read the file as
follows:
>>> fdata = open(filename, 'r').read()
I got a
does not take up available physical memory
On Fri, Oct 19, 2012 at 11:08 AM, Pradipto Banerjee
wrote:
> Is there any reason why python can't read a 1GB file in memory even when a
> 2.3 GB physical memory is available? Do I need to make a change in some
> setting or preferences?
>
On 10/19/2012 10:08 AM, Pradipto Banerjee wrote:
> Hi,
>
> I am trying to read a file into memory. The size of the file is around 1
> GB. I have a 3GB memory PC and the Windows Task Manager shows 2.3 GB
> available physical memory when I was trying to read the file. I tried to
>
-list-bounces+pradipto.banerjee=adainvestments@python.org] On
Behalf Of Dennis Lee Bieber
Sent: Friday, October 19, 2012 6:01 PM
To: python-list@python.org
Subject: Re: Python does not take up available physical memory
On Fri, 19 Oct 2012 12:08:53 -0500, Pradipto Banerjee
declaimed the
3:37 -0500, Pradipto Banerjee wrote:
> Thanks, I tried that. Still got MemoryError, but at least this time
> python tried to use the physical memory. What I noticed is that before
> it gave me the error it used up to 1.5GB (of the 2.23 GB originally
> showed as available) - so in ge
ython-list
[mailto:python-list-bounces+pradipto.banerjee=adainvestments@python.org] On
Behalf Of Steven D'Aprano
Sent: Friday, October 19, 2012 6:12 PM
To: python-list@python.org
Subject: Re: Python does not take up available physical memory
On Fri, 19 Oct 2012 14:03:37 -0500, Pradipto Bane
I am working with a series of large files with sizes 4 to 10GB and may need to
read these files repeated. What data format (i.e. pickle, json, csv, etc.) is
considered the fastest for reading via python?
Thanks
This communication is for informational purposes only. It is not intended to
be, n
I am working with a series of large files with sizes 4 to 10GB and may need to
read these files repeated. What data format (i.e. pickle, json, csv, etc.) is
considered the fastest for reading via python?
Thanks
This communication is for informational purposes on