[Pyobjc-dev] Re: Default to returning (void)?
Brought to you by:
ronaldoussoren
From: Michael H. <mw...@py...> - 2004-02-16 11:17:33
|
Bob Ippolito <bo...@re...> writes: > On Feb 16, 2004, at 5:26 AM, Michael Hudson wrote: > >> Bob Ippolito <bo...@re...> writes: >> >>> Why not objc.getter / objc.setter / objc.action? This is really why >>> Python needs a way to decorate functions that isn't so f*!@#!ing >>> ugly. >> >> I've only had a patch to do that for ... 3? ... years now. Maybe it's >> finally time to agitate on its behalf properly on python-dev. > > Sounds like a good plan, where's the patch, The patch is at http://starship.python.net/crew/mwh/hacks/meth-syntax-sugar-3.diff It has been discussed a bit on python-dev already (part of those huge threads about syntax ~9 months back); http://www.google.com/search?q=+site:mail.python.org+%22meth-syntax-sugar%22 is a good start :-) I assume that patch applies cleanly; haven't actually tried it lately. > and does it already have a PEP? It's kinda covered by PEP 318, but that advocates a different syntax variant. Cheers, mwh -- MARVIN: What a depressingly stupid machine. -- The Hitch-Hikers Guide to the Galaxy, Episode 7 |