Help, how to override <= operator

Fredrik Lundh fredrik at pythonware.com
Wed May 19 05:18:21 EDT 1999


Joseph Kuan <jk94r at ecs.soton.ac.uk> wrote:
> What's the function name for overriding the <= operator?

__cmp__

note that it's used by all comparision operators; see
http://www.python.org/doc/current/ref/customization.html
for details.

</F>





More information about the Python-list mailing list