Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8347

Re: Using __abstractmethod__ with non-methods

References <BANLkTinsj3YJpX=oOLHTFZMJw+gCDYDbMA@mail.gmail.com>
Date 2011-06-23 22:11 -0600
Subject Re: Using __abstractmethod__ with non-methods
From Eric Snow <ericsnowcurrently@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.349.1308888715.1164.python-list@python.org> (permalink)

Show all headers | View raw


Just a follow up on the longer post I made [1]:

Is it bad to set __abstractmethod__ on non-functions in order to
trigger the ABC abstractness checks?

If not, are __isabstractmethod__ on objects and __abstractmethods__ on
classes misleading names?

Like I said before, I don't mean to imply that Python has it wrong.
On the contrary, I typically start by assuming that Python has it
right and then try to figure out what I am missing.  Such is the case
here.

-eric

[1] http://mail.python.org/pipermail/python-list/2011-June/1274555.html

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Using __abstractmethod__ with non-methods Eric Snow <ericsnowcurrently@gmail.com> - 2011-06-23 22:11 -0600

csiph-web