My proposal wasn't to make the body optional based on the presence of a decorator, but rather to return a "function prototype" iff the body does not exist (I probably should have made my made my own reply instead of piggybacking on his proposal). I also mentioned some form of expression to represent this, similar to lambda. Maybe a friendly error message telling the user to use a function when this thing is called would alleviate some confusion? I'm not sure how one would forget to add the function body anyway. _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/3HJY6VGLIWRJ7F4BZBNGNCSJJTXH3CVM/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-Dev] Re: R... Andrew Svetlov
- [Python-Dev] Re: R... Serhiy Storchaka
- [Python-Dev] R... Andrew Svetlov
- [Python-Dev] R... Brett Cannon
- [Python-Dev] R... Serhiy Storchaka
- [Python-Dev] R... Patrick Reader
- [Python-Dev] Re: RFC on Callable Syntax ... Mark Shannon
- [Python-Dev] Re: RFC on Callable Sy... Brett Cannon
- [Python-Dev] Re: RFC on Callable Sy... asleep . cult
- [Python-Dev] Re: RFC on Callabl... Guido van Rossum
- [Python-Dev] Re: RFC on Cal... asleep . cult
- [Python-Dev] Re: RFC on... Guido van Rossum
- [Python-Dev] Re: RFC on Cal... Gregory Beauregard via Python-Dev
- [Python-Dev] Re: RFC on... Steven Troxler
- [Python-Dev] Re: R... Gregory Beauregard via Python-Dev
- [Python-Dev] Re: RFC on Callable Sy... Mehdi2277
- [Python-Dev] Re: RFC on Callable Syntax ... Petr Viktorin