Help, how to override <= operator

Greg Ewing greg.ewing at compaq.com
Mon May 31 23:57:11 EDT 1999


Frank Niessink wrote:
> 
> Clemens Hintze <cle at gmx.net> wrote:
> 
> > class myint:
> >     i = 0
> 
> This is a bit confusing because you don't need (and don't even use,
> and probably don't _want_ to use) the class variable i.

I beg to differ - I think that "declaring" instance variables
in this way serves a useful documentation purpose, and I do
so frequently.

Greg




More information about the Python-list mailing list