"Ronald Oussoren" >My particular use-case is PyObjC, which sometimes suffers from haveing >veryLong_andSometimesAlsoVeryUgly_methodNames_. Having to repeat those >three times when using a decorator is no fun. I did not get this at first (see below). I believe you mean more specifically "Having to repeat those three times when using the old no-special-deco-syntax post call is no fun." "Bob Ippolito" followed with > The alternative would be (current syntax and current PyObjC) this: > > def saveSheetDidDismiss_returnCode_contextInfo_(self, sheet, > returnCode, contextInfo): > pass > saveSheetDidDismiss_returnCode_contextInfo_ = > objc.selector(saveSheetDidDismiss_returnCode_contextInfo_, > signature='v@:@i') Aha! Now I get it (perhaps for the second time in an extended discussion). One argument for extended assignment was and is that not writing names, especially long names, twice makes for easier reading and fewer bugs. The argument for not writing names *three* times, is even stronger. If this rationale against the status quo (which many objectors on c.l.py favor) is not currently in the pep, I think it should be. Terry J. Reedy
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