On Sun, Jun 16, 2013 at 3:17 PM, Steven D'Aprano <[email protected]> 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 ....".
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor