[Tutor] The Whole Tree

eryksun eryksun at gmail.com
Mon Jun 17 07:02:15 CEST 2013


On Sun, Jun 16, 2013 at 3:17 PM, Steven D'Aprano <steve at pearwood.info> wrote:
>
> plus some more exotic built-ins, which I haven't shown.

Some types that didn't make it into Steven's list:

    zip
    map
    filter
    enumerate
    reversed
    memoryview

    slice
    ellipsis, type(...)

    super
    classmethod
    staticmethod
    property

I wouldn't call 'em exotic. OK, maybe ellipsis.

Regarding abstract base classes, once you've gotten the hang of the
data model, read the docs for abc and numbers in addition to the
already-mentioned collections.abc:

http://docs.python.org/3/library/abc
http://docs.python.org/3/library/numbers

For example, sorted(numbers.Integral.__abstractmethods__) is the list
of methods that have to be implemented. Else the interpreter will just
complain that it "Can't instantiate abstract class Integral with
abstract methods ....".


More information about the Tutor mailing list