On Aug 2, 6:17 pm, "Aaron Swartz" <[EMAIL PROTECTED]> wrote:
> Why not just do:
>
> $ myobject = longcomputation(myvar)

Er, because I didn't see that in the documentation.  Looking again,
there is one bit of code that looks like that, but it's sitting below
a boldface warning that says the feature is not yet implemented.

Another thing that tripped me up is that blocks are terminated by an
empty line.  That seems to be undocumented--I just guessed it, myself.

Also, it's unclear on that page whether the semantics of the 'else'
clause in $for and $while statements are the same as for Python for
and while statements, or not.  The page says that the else clause is
only executed if the loop is never evaluated (which I assume means "if
the loop condition never evaluates to true"), but Python for/while
else clauses *are* executed when their loops terminate "normally" (no
break, exception, exit, etc).  If the semantics are actually the same,
I think the doc should say that.  If they aren't, it might be less
confusing to choose a different keyword (e.g., "otherwise:").

This notwithstanding, I think web.py is very slick, and I appreciate
its relative minimal elegance.  I've tried several other frameworks
and I was unhappy enough with them to keep looking.  So far web.py is
doing what I need it to.

Regards,
Mike


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to