Code

Changes between Version 2 and Version 3 of ShortcutSyntaxIdeas


Ignore:
Timestamp:
09/21/05 09:52:11 (9 years ago)
Author:
Simon Willison
Comment:

Comment on the decorator proposal.

Legend:

Unmodified
Added
Removed
Modified
  • ShortcutSyntaxIdeas

    v2 v3  
    3636    yield {"header": 'The first 4 primes'} 
    3737}}} 
     38 
     39''I think this is brilliant, but with a couple of hangups. Firstly, I think returning a single dictionary would make more sense (in most cases) than yielding - although I have no preblem with yield being supported as an alternative. Secondly, why yield single key dictionaries instead of tuple pairs?'' - SimonWillison 
    3840 
    3941== Idea 2: Class ==