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/047004.html below:

[Python-Dev] Call for defense of @decorators

[Python-Dev] Call for defense of @decorators [Python-Dev] Call for defense of @decoratorsBill Janssen janssen at parc.com
Fri Aug 6 01:32:19 CEST 2004
> class ModelObject (NSObject):
> 
> 	@objc.accessor
> 	def messageLength(self):
> 		return "XIV"
> 
> 	@objc.signature("v@:@i")
> 	def saveSheetDidDismiss_returnCode_contextInfo_(self, sheet, 
> returnCode, contextInfo):
> 		pass

I'd prefer (and I don't remember what the issue about this was):

	def messageLength(self) as objc.accessor:
		return "XIV"

	def saveSheetDidDismiss_returnCode_contextInfo_(self, sheet, 
returnCode, contextInfo) as objc.signature("v@:@i"):
		pass

or 

	def foo () as staticmethod:

I'm also happy with the

	def staticmethod foo():

proposal, but the point about breaking etags seems reasonable to me.
Maybe when the PEP captures the dscussion we can all read it and come
to a consensus, because we'll all understand what's wrong with the
non-pie proposals.

Bill
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