Status of PEP's?

James_Althoff at i2.com James_Althoff at i2.com
Mon Mar 4 17:02:15 EST 2002


[Another poster]
> Numbers don't perform operations

[James Altfhoff]
> they can <wink>
> >>> -3 .__abs__()
> -3
> >>>

True.  But your (aka *my*) point would probably be better made with

>>> (-3).__abs__()
3

or

>>> 3 .__abs__()
3

(Precedence wasn't the issue <wink>.)

Jim





More information about the Python-list mailing list