[Python-3000] PEP Draft: Class Decorators (original) (raw)
Jack Diederich jackdied at jackdied.com
Sat Mar 10 01:01:01 CET 2007
- Previous message: [Python-3000] PEP Draft: Class Decorators
- Next message: [Python-3000] [Python-Dev] Policy Decisions, Judgment Calls, and Backwards Compatibility (was Re: splitext('.cshrc'))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Mar 09, 2007 at 01:21:49PM -0800, Brett Cannon wrote:
On 2/28/07, Collin Winter <collinw at gmail.com> wrote: >On 2/28/07, Jack Diederich <jackdied at jackdied.com> wrote: >[snip] >> History and Implementation >> ========================== >> >> Class decorators were originally proposed in PEP318 [1] and were >rejected >> by Guido [2] for lack of use cases. Two years later he saw a use case >> he liked and gave the go-ahead for a PEP and patch [3]. > >While I can look up the use-case that prompted Guido to change his >mind via the footnote, I'd appreciate having a sampling of use-cases >listed in the PEP itself. >
It would also help as there is no explicit mention of what the decorator gets passed (I assume the class object, but it is actually not specified anywhere). Some pseudo-code of what exactly is happening wouldn't hurt to more concretely specify it. And you probably want to submit this to the PEP editors to get it checked in as Talin keeps talking about class decorators as if they are already in Py3K. =)
Yes, Talin's metaclass post lit a fire under by behind. New version with all the feedback I got getting posted in five ..
-Jack
- Previous message: [Python-3000] PEP Draft: Class Decorators
- Next message: [Python-3000] [Python-Dev] Policy Decisions, Judgment Calls, and Backwards Compatibility (was Re: splitext('.cshrc'))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]