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

Robert Kern robert.kern at gmail.com
Tue Feb 21 23:23:18 EST 2006


Casey Hawthorne wrote:
> I believe you are asking for a side effect from the "==" operator.
> 
> Add print statements to the __eq__ method.

The things is, he wants to make those modifications to builtin types, which he
can't do.

-- 
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