[Python-3000] Abilities / Interfaces

Jim Jewett jimjjewett at gmail.com
Mon Nov 27 00:27:15 CET 2006


On 11/22/06, Guido van Rossum <guido at python.org> wrote:
> I'd much rather have a few "big" interfaces (Number,
> RealNumber, Integer) than lots of small ones
> Pedroni-style (number-that-support-exponentiation,
> number-that-supports-bitwise-and,
> number-that-supports-left-shift, ...?).

My understanding is that the Pedroni-style interfaces are big; they
are just decomposable.

File would be a (large) interface, but you could also specify that you
only cared about (or only implemented) the subset consisting of
File.close and File.write, in case you wanted something sort-of-like
an existing interface.

-jJ


More information about the Python-3000 mailing list