[Python-3000] adding @abstractmethods after class creation (original) (raw)
Steven Bethard steven.bethard at gmail.com
Wed Apr 25 06:50:54 CEST 2007
- Previous message: [Python-3000] adding @abstractmethods after class creation
- Next message: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 4/24/07, Guido van Rossum <guido at python.org> wrote:
I'm not sure what the point would be of supporting dynamically modifying ABCs -- it looks like you're just exploring the corners of the semantics rather than providing actual use cases.
Yep, I'm just checking the corner case semantics. Like I said::
I don't mind at all if we just say "don't do that", but then
@abstractmethod should probably be documented explicitly as only being
usable within a class body. (Note that this is different from
@classmethod and @staticmethod which can be used after the fact.)
I just want to make sure it's intended and documented.
STeVe
I'm not in-sane. Indeed, I am so far out of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy
- Previous message: [Python-3000] adding @abstractmethods after class creation
- Next message: [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]