Changes between Version 2 and Version 3 of ShortcutSyntaxIdeas


Ignore:
Timestamp:
Sep 21, 2005, 11:52:11 AM (19 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 ==
Back to Top