Weird python behavior

2013-04-24 Thread Forafo San
Hello All, I'm running Python version 2.7.3_6 on a FreeBSD system. The following session in a Python interpreter throws a mysterious TypeError: -- [ppvora@snowfall ~/xbrl]$ python Python 2.7.3 (default, Apr 22 2013, 18:42:18) [GCC 4.2.1 20070719

Re: Weird python behavior

2013-04-24 Thread Forafo San
On Wednesday, April 24, 2013 3:08:27 PM UTC-4, Neil Cerutti wrote: On 2013-04-24, Forafo San ppv.g...@gmail.com wrote: Hello All, I'm running Python version 2.7.3_6 on a FreeBSD system. The following session in a Python interpreter throws a mysterious TypeError

Replacement for the shelve module?

2011-08-19 Thread Forafo San
Folks, What might be a good replacement for the shelve module, but one that can handle a few gigs of data. I'm doing some calculations on daily stock prices and the result is a nested list like: [[date_1, floating result 1], [date_2, floating result 2], ... [date_n, floating result n]]

Re: Replacement for the shelve module?

2011-08-19 Thread Forafo San
On Aug 19, 11:54 am, Thomas Jollans t...@jollybox.de wrote: On 19/08/11 17:31, Forafo San wrote: Folks, What might be a good replacement for the shelve module, but one that can handle a few gigs of data. I'm doing some calculations on daily stock prices and the result is a nested

TypeError: 'module' object is not callable

2011-08-11 Thread Forafo San
I wrote a class, Univariate, that resides in a directory that is in my PYTHONPATH. I'm able to import that class into a *.py file. However when I try to instantiate an object with that class like: x = Univariate(a) # a is a list that is expected by the Univariate class python

Re: TypeError: 'module' object is not callable

2011-08-11 Thread Forafo San
On Thursday, August 11, 2011 8:22:20 PM UTC-4, MRAB wrote: On 11/08/2011 23:43, Forafo San wrote: I wrote a class, Univariate, that resides in a directory that is in my PYTHONPATH. I'm able to import that class into a *.py file. However when I try to instantiate an object with that class