"andresj" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
|| I know from __future__ import division changes the behaivour to return
| floats instead of ints, but what I meant is to be able to implement a
| function (or class/method) which would return what _I_ want/decide.

When you define your own class, you can make any operator (on instances of 
that class) mean anything you want.  But to use such methonds, once 
defined, you first have to make instances of that class using 
classname(init data) or whatever.

There is no way to hijack int op int though.

tjr



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to