Re: how to calculate reputation

2013-07-02 Thread Surya Kasturi
On Tue, Jul 2, 2013 at 11:59 PM, Tobiah wrote: > On 07/02/2013 02:43 PM, Surya Kasturi wrote: > >> Hi all, this seems to be quite stupid question but I am "confused".. >> We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. >> >>

how to calculate reputation

2013-07-02 Thread Surya Kasturi
Hi all, this seems to be quite stupid question but I am "confused".. We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. I have a list of bool values True, False (True for up vote, False for down-vote).. submitted by users. [True, False, False, True] Now to calculate th

Re: django vs zope vs web2py

2013-04-21 Thread Surya Kasturi
On Sun, Apr 21, 2013 at 11:48 AM, Alok Singh Mahor wrote: > I am sorry by mistake I sent incomplete mail here is my mail. > > Hi everyone, > few months back I decided to adopt python for my all sort of work > including web programming. and I have wasted long time deciding which to > adopt out of d

Re: Help: pickle module unable to load "rb" mode files in linux

2013-04-07 Thread Surya Kasturi
nux system (particularly CentOS) On Tue, Apr 2, 2013 at 8:50 PM, Peter Otten <__pete...@web.de> wrote: > Surya Kasturi wrote: > > > Hi, hope you can help me on it.. > > > > with open(pickle_f, 'r') as fhand: > > obj = pickle.load(fhand) > &g

Help: pickle module unable to load "rb" mode files in linux

2013-04-02 Thread Surya Kasturi
Hi, hope you can help me on it.. with open(pickle_f, 'r') as fhand: obj = pickle.load(fhand) This works on linux but not in windows until I use "rb" mode while creating file object. Surprisingly, the "rb" mode is not working on Linux.. raising EOFError. Why is this happening? -- http: