Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #91515
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Minus operator versus unary minus |
| Date | 2015-05-30 09:56 +0200 |
| Organization | None |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.215.1432972613.5151.python-list@python.org> (permalink) |
The following modification of the collections.Counter implementation https://hg.python.org/cpython/rev/fe4efc0032b5 was just checked in with the line result[elem] = 0 - count Does this have an advantage over the obvious result[elem] = -count ?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Minus operator versus unary minus Peter Otten <__peter__@web.de> - 2015-05-30 09:56 +0200
Re: Minus operator versus unary minus Steven D'Aprano <steve@pearwood.info> - 2015-05-30 18:19 +1000
Re: Minus operator versus unary minus Peter Otten <__peter__@web.de> - 2015-05-30 10:36 +0200
csiph-web