May i customize basic operator (such as 1==3)?

Robert Kern robert.kern at gmail.com
Wed Feb 22 18:42:14 EST 2006


Casey Hawthorne wrote:
> Cannot one subclass the builtin types?

Of course! But that won't change the method on instances of the original builtin
type.

> I have heard, that one should always use objects when programming and
> avoid the builtin types!

That's not particularly good advice for Python.

> Then one is prepared to change objects at will and not rely on any
> special properties of the builtin types!

If you really want to do that, go ahead. I won't stop you. I won't use your
code, either.

-- 
Robert Kern
robert.kern at gmail.com

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Python-list mailing list