Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49671
| References | <CAArdDCogGhTFQi41uAFdd0qYePChsxwzV2uGgxGHVhZe+dbMsQ@mail.gmail.com> |
|---|---|
| Date | 2013-07-02 17:05 -0700 |
| Subject | Re: how to calculate reputation |
| From | Mark Janssen <dreamingforward@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4137.1372809942.3114.python-list@python.org> (permalink) |
> 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. > > should I take True = +1, False=0 [or] True = +1, False=-1 ?? for adding > all. > > I am missing something here.. and that's clear.. anyone please help me on > it? If False is representing a down-vote, like you say, then you have to incorporate that information, in which case False=-1 ==> a user not merely ignored another user, but marked him/her down. MarkJ Tacoma, Washington
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: how to calculate reputation Mark Janssen <dreamingforward@gmail.com> - 2013-07-02 17:05 -0700 Re: how to calculate reputation DJC <djc@news.invalid> - 2013-07-06 15:23 +0200
csiph-web