[Python-Dev] EuroPython Language Summit report (original) (raw)
P.J. Eby pje at telecommunity.com
Sat Jun 25 17:31:42 CEST 2011
- Previous message: [Python-Dev] EuroPython Language Summit report
- Next message: [Python-Dev] EuroPython Language Summit report
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 10:46 AM 6/25/2011 +1000, Nick Coghlan wrote:
Indeed, PEP 380 is really hard to do properly without language support.
No, it isn't. You add a decorator, a 'from_' class, and a 'return_' function, and there you go. (See my previous code sketches here in early PEP 380 discussions.)
Python frameworks have been doing variations of the same thing (with varying features and APIs) for at least 7 years now -- even on Python versions that lack decorators or the ability to return values from yield statements.
So the main benefit of a PEP for this functionality would be providing a common implementation/API - and that could be initially done in the stdlib, without any added syntax support.
- Previous message: [Python-Dev] EuroPython Language Summit report
- Next message: [Python-Dev] EuroPython Language Summit report
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]