What does the `return +self` do?

54 Views Asked by At

In PEP 3141 I noticed a peculiar fragment which I don't fully understand. In class Real functions real() and conjugate() return +self, like so:

@property
def real(self):
    return +self

Why is there a + in front of self? What does it do? Or is it just some kind of a typo..?

0

There are 0 best solutions below