[Python-3000] PEP 3133: Introducing Roles (original) (raw)
Guido van Rossum guido at python.org
Wed May 16 19:50:07 CEST 2007
- Previous message: [Python-3000] PEP 3133: Introducing Roles
- Next message: [Python-3000] PEP 3133: Introducing Roles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 5/16/07, Benji York <benji at benjiyork.com> wrote:
Guido van Rossum wrote: > On 5/14/07, Benji York <benji at benjiyork.com> wrote: >> Collin Winter wrote: >>> PEP: 3133 >>> Title: Introducing Roles >> Everything included here is included in zope.interface. See in-line >> comments below for the analogs. > > Could you look at PEP 3119 and do a similar analysis?
Sure. > I expect that > the main thing missing there is that it (currently) has no way to > claim that a particular object has a certain behavior. Is "it" in that sentence the ABC PEP or zope.interface?
The ABC PEP.
> PEP 3119 currently also doesn't have a > verification step -- but this could easily be added as an (optional) > part of the registration call.
I don't care much for verification. People using zope.interface have found that writing good tests is superior to on-demand verification, and I suspect execution time verification is a non-starter because of the overhead (not to mention its actual desirability, or lack thereof).
I don't care much for it either. If zope.interface users don't care for it either, I'm happy to declare it a non-use case. I was just thinking of how to "sell" ABCs as an alternative to current happy users of zop.interfaces.
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] PEP 3133: Introducing Roles
- Next message: [Python-3000] PEP 3133: Introducing Roles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]