Re: [Tutor] managing memory large dictionaries in python

2012-10-19 Thread wrw
On Oct 16, 2012, at 12:57 PM, Abhishek Pratap wrote: > Hi Guys > > For my problem I need to store 400-800 million 20 characters keys in a > dictionary and do counting. This data structure takes about 60-100 Gb > of RAM. > I am wondering if there are slick ways to map the dictionary to a file > o

Re: [Tutor] Segmentation Fault shenanigans with wx Gui

2012-10-19 Thread Alan Gauld
On 19/10/12 23:05, Marco Mistroni wrote: Hi all i have written a wx GUI which downloads json data from a server, and populate a listbox. ... use events, but i am still getting a segmentation fault A segmentation fault is usually due to a fault down in the C code. With wxPython that means

Re: [Tutor] Segmentation Fault shenanigans with wx Gui

2012-10-19 Thread Steven D'Aprano
On 20/10/12 09:10, Marco Mistroni wrote: Hello i found the problem. It's calling self.list.ClearAll that causes the segmentation fault. removing the call to ClearAll fixed my problem , but i still want to clear the list before i load new data.. could anyone assist? This is not a questi

Re: [Tutor] Segmentation Fault shenanigans with wx Gui

2012-10-19 Thread Marco Mistroni
Hello i found the problem. It's calling self.list.ClearAll that causes the segmentation fault. removing the call to ClearAll fixed my problem , but i still want to clear the list before i load new data.. could anyone assist? wkr marco On Fri, Oct 19, 2012 at 11:05 PM, Marco Mistroni wrot

[Tutor] Segmentation Fault shenanigans with wx Gui

2012-10-19 Thread Marco Mistroni
Hi all i have written a wx GUI which downloads json data from a server, and populate a listbox. Every time i populate a listbox, i am receiving Segmentation Faults. I have tried to retrieve data from the URL via separate thread, and to use events, but i am still getting a segmentation fault could

Re: [Tutor] Help Passing Variables

2012-10-19 Thread Dave Angel
On 10/19/2012 11:40 AM, Daniel Gulko wrote: > Thanks David. This has been helpful in understanding a bit more on how > parameters are passed through. Please don't top-post. it ruins the sequence of events. Your comments above happened after the parts you quote below. So why are they not after t

Re: [Tutor] How to unpack python-dateutil-2.0.tar.gz

2012-10-19 Thread Prasad, Ramit
eryksun wrote: > On Thu, Oct 18, 2012 at 8:01 PM, Richard D. Moores wrote: > > > > Python 3.2.3 64 bit > > MS Windows 7 Home Premium 64-bit SP1 > > > > have forgotten how to unpack a .tar.gz file. Please remind me. > > shutil.unpack_archive(filename, extract_dir, 'gztar') > > http://doc

Re: [Tutor] Objects, object references, object values and memory addresses

2012-10-19 Thread Daniel Gulko
Great explanation Alan. I am a newbie at Python but descriptions like this really help me better understand. Thanks again. > To: tutor@python.org > From: alan.ga...@btinternet.com > Date: Thu, 18 Oct 2012 08:32:41 +0100 > Subject: Re: [Tutor] Objects, object references, object values and

Re: [Tutor] Help Passing Variables

2012-10-19 Thread Daniel Gulko
Thanks David. This has been helpful in understanding a bit more on how parameters are passed through. > Date: Thu, 18 Oct 2012 04:44:55 -0400 > Subject: Re: [Tutor] Help Passing Variables > From: dwightdhu...@gmail.com > To: dangu...@hotmail.com > CC: tutor@python.org > > #A little more complex

Re: [Tutor] How to unpack python-dateutil-2.0.tar.gz

2012-10-19 Thread Richard D. Moores
On Fri, Oct 19, 2012 at 3:47 AM, eryksun wrote: > On Fri, Oct 19, 2012 at 5:53 AM, Richard D. Moores wrote: >> On Fri, Oct 19, 2012 at 1:55 AM, Mark Lawrence >> wrote: >>> >>> So what? Why should the way that Python software gets installed vary from >>> version to version? >> >> Try it yoursel

Re: [Tutor] How to unpack python-dateutil-2.0.tar.gz

2012-10-19 Thread eryksun
On Fri, Oct 19, 2012 at 5:53 AM, Richard D. Moores wrote: > On Fri, Oct 19, 2012 at 1:55 AM, Mark Lawrence > wrote: >> >> So what? Why should the way that Python software gets installed vary from >> version to version? > > Try it yourself and you'll see. The setup.py needs setuptools as per jc

Re: [Tutor] How to unpack python-dateutil-2.0.tar.gz

2012-10-19 Thread Richard D. Moores
On Fri, Oct 19, 2012 at 1:55 AM, Mark Lawrence wrote: > On 19/10/2012 02:55, Richard D. Moores wrote: >> >> On Thu, Oct 18, 2012 at 6:08 PM, Mark Lawrence >> wrote: >> >>> Could you please take a training course on how to use a search engine. >>> First >>> hit on google for "python dateutils inst

Re: [Tutor] How to unpack python-dateutil-2.0.tar.gz

2012-10-19 Thread Mark Lawrence
On 19/10/2012 02:55, Richard D. Moores wrote: On Thu, Oct 18, 2012 at 6:08 PM, Mark Lawrence wrote: Could you please take a training course on how to use a search engine. First hit on google for "python dateutils install windows" is http://stackoverflow.com/questions/879156/how-to-install-pyth

Re: [Tutor] IDLE shell indentation?

2012-10-19 Thread Alan Gauld
On 19/10/12 03:11, boB Stepp wrote: if zero: print(zero) else: print(phrase) This is a long standing bug/feature of IDLE and gets debated regularly on the IDLE mailing list. BTW There is a more feature rich unofficial version of Idle called IdleX by Roger Serwy here: htt