A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/046810.html below:

[Python-Dev] Re: 2.4a2, and @decorators

[Python-Dev] Re: 2.4a2, and @decoratorsHeiko Wundram heikowu at ceosg.de
Wed Aug 4 18:09:54 CEST 2004
Am Mittwoch, 4. August 2004 17:17 schrieb Batista, Facundo:
> So, all that said, I'm +1 to take this out from 2.4.

-1000 to take it out from 2.4... And +1 on Guido's intuition for choosing the 
@ syntax (it goes easily for me). I'd love to see something of the following 
form:

class x:
	synchronized = threading.Synchronizer()

	@synchronized
	def y(self):
		<do something>

When's threading.Synchronizer coming (just a threading.(R)Lock with an extra 
__call__ which prepares a method for synchronization with this lock)? I 
already have some patches which implement module/class/instance locking using 
just a simple RLock and the decorator syntax, and I'd gladly sign over the 
patches to the PSF. ;)

Heiko.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4