[PATCH] python2.3 with_*lock problems
John Arbash Meinel
john at arbash-meinel.com
Mon May 30 05:24:15 BST 2005
It turns out that the @ decorator syntax only exists in python 2.4. And
while I think it looks wonderful and is a wonderful way to go, it breaks
compatibility with python2.3.
Is it planned to not support 2.3, I'm sure it has gone back and forth a bit.
Anyway, the patch attached changes all of the @with_readlock and
@with_writelock back to their old format of:
def myfunc():
blah
myfunc = with_readlock(myfunc)
I don't like it much, but since python2.3 is what comes with my Mac, and
I haven't tried upgrading it yet, I would like to maintain
compatibility. (If this is just my local patch, that is fine).
John
=:->
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: with-lock-py23.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20050529/ac1f1794/attachment.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050529/ac1f1794/attachment.pgp
More information about the bazaar
mailing list