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


Groups > comp.lang.python > #8347

Re: Using __abstractmethod__ with non-methods

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ericsnowcurrently@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.046
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'imply': 0.07; 'python': 0.08; '[1]:': 0.09; 'subject:skip:_ 10': 0.09; 'contrary,': 0.16; 'names?': 0.16; 'subject:non': 0.16; 'to:name:python-list': 0.19; 'figure': 0.21; 'header:In-Reply-To:1': 0.22; 'skip:_ 20': 0.28; 'objects': 0.28; 'message-id:@mail.gmail.com': 0.28; 'classes': 0.30; 'typically': 0.33; 'to:addr:python-list': 0.34; 'post': 0.34; 'trigger': 0.35; 'url:python': 0.36; 'assuming': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'not,': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'subject:with': 0.38; '[1]': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.39; 'case': 0.40; 'order': 0.62; 'here.': 0.66; 'received:209.85.215.174': 0.67; 'received:mail- ey0-f174.google.com': 0.67; 'abc': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=H6SuqtmU5PaFKnH2qrOxUIaVtxMCp9qJZ1UHR/RlBqY=; b=AhUkHNoDaolem+VUANjHZeGKY35jTMhDKlI8I5YSBPxBW7I/7Ejcmy0jE3+Q8VUaH8 2XLestscLbwF83Y0my1Rzjf3wdRfM0ICR3z4JyGLmUlcXubhMe8PD+aA8G3KHT8XW5jB slV/xHbm9lNwNyYrnQqLuWn0yQn1+GYkuRCSo=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qeXzT1qLtaPn+t3bjrxhtPlOK5iFmzvge+LNihpdBywTFWU/GfJUDzXTTR5cRMbgn7 DNPwNn9TmxrSYM/cbqAND3UAjCcVJq3op6oxo5+P3Nd5omd87YS1QBsxE/b7ckkJfMuE K/rxXDvb59ApQCpn3Tg4ygSS9vTH9j9ZkG49o=
MIME-Version 1.0
In-Reply-To <BANLkTinsj3YJpX=oOLHTFZMJw+gCDYDbMA@mail.gmail.com>
References <BANLkTinsj3YJpX=oOLHTFZMJw+gCDYDbMA@mail.gmail.com>
Date Thu, 23 Jun 2011 22:11:54 -0600
Subject Re: Using __abstractmethod__ with non-methods
From Eric Snow <ericsnowcurrently@gmail.com>
To python-list <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.349.1308888715.1164.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 82.94.164.166
X-Trace 1308888715 news.xs4all.nl 14144 [::ffff:82.94.164.166]:60576
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8347

Show key headers only | 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