Problems using struct pack/unpack in files, and reading them.

Chris Angelico rosuav at gmail.com
Fri Nov 13 22:56:36 EST 2015


On Sat, Nov 14, 2015 at 2:45 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
>> Yes, unary minus has the same issue - but it's a lot more important
>> than unary plus is. In ECMAScript, unary plus means "force this to be
>> a number"; what's its purpose in Python?
>
> It forces a Counter to contain only positive counts?

Did not know that, and would not have gone looking for it. If Python
hadn't had a unary plus operator, Counter would have managed in some
other way, without being materially impacted by it.

ChrisA



More information about the Python-list mailing list