News for hackers. Stuff that matters.
Re:Ask HN: How many of you non-tech people wanted to learn t... by ivank on Monday May 30, 2016 @01:57PM (#11802339)
http://www.rafekettler.com/magicmethods.html#appendix1

and you can call them directly:

  >>> (3).__neg__()
  -3

There are no comments on this comment yet.