overloading operators

Michael Hudson mwh at python.net
Thu Jan 24 13:28:51 CET 2002


QdlatY <qdlaty at ikom.pl> writes:

> Btw. Is it possible to create new operator ? f.e. "++" ?

No.

Actually, ++x means something already today, but probably not what you
want: ++x == +(+x) == x (for builtin types anyway).

Cheers,
M.

-- 
  Slim Shady is fed up with your shit, and he's going to kill you.
                         -- Eminem, "Public Service Announcement 2000"



More information about the Python-list mailing list