[Python-Dev] Re: decorators and 2.4
Jeff Bone
jbone at place.org
Mon Jun 28 13:27:52 EDT 2004
Okay, this is a great and meaty example, thanks Barry. It's the first
one that I've seen that is clearly not a purely declarative thing at
least in the abstract. What would the proposed decorator version of
this look like?
On Jun 28, 2004, at 12:19 PM, Barry Warsaw wrote:
> Here's a pointer to some of the code:
>
> http://cvs.sourceforge.net/viewcvs.py/mailman/mailman3/src/mailman/
> berkeleydb/bdblist.py?rev=3.2&view=auto
>
> The txnprop() descriptor guarantees that self.txn is bound to a
> transaction inside the method call.
>
> -Barry
>
More information about the Python-Dev
mailing list