Usefulness of subclassing builtin number types

Martin v. Löwis martin at v.loewis.de
Tue Dec 17 06:44:28 EST 2002


Mike Meyer <mwm at mired.org> writes:

> Those looking for insight into such issues might want to take a look
> at Eiffel. It's INTEGER class defines all the operators as returning
> an object of the class of the target.

Alas, doesn't apply to Python. It's integer operations return objects
of various types.

Regards,
Martin




More information about the Python-list mailing list