[Python-Dev] Re: new syntax for wrapping (PEP 318)

Barry Warsaw barry at python.org
Thu Feb 26 08:26:33 EST 2004


On Thu, 2004-02-26 at 04:20, Moore, Paul wrote:

> 
> Heck, by the time most people will need the full power of the wrapping
> feature [1], they will probably know enough to understand the C code of
> the patch itself! It's pretty advanced usage, remember...
> 
> [1] Except for extremely stylised cases like [classmethod], which will
>     be for particular use cases - and you can look that one up under
>     "classmethod"...

Nothing in PEP 318 is going to make the current way of wrapping illegal,
so I would think that a beginning class might make life simpler by first
teaching the post-method wrapping idiom.  They might then explain how
there's this neat (more advanced) decorator syntax for making things
more succinct.

-Barry





More information about the Python-Dev mailing list