numeric emulation and __pos__

Sion Arrowsmith siona at chiark.greenend.org.uk
Wed Jul 9 11:44:48 EDT 2008


Ethan Furman  <ethan at stoneleaf.us> wrote:
>Anybody have an example of when the unary + actually does something?

I've seen it (jokingly) used to implement a prefix increment
operator. I'm not going to repeat the details in case somebody
decides it's serious code.

-- 
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
   "Frankly I have no feelings towards penguins one way or the other"
        -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list