On Saturday 23 May 2009 18:42:58 AchipA wrote:
> Tt does break existing properly written python code (and is very non-
> pythonesque). 
+1 except for harshness. Masking exceptions is a BAD THING (TM)

> Think: 
>
> try: target = request.args[0]
> except:
>    response.flash = 'No target specified'
>    return
>
> do_something(target)

> If this is an issue for people, I think they should improve their
> python skills (learn exceptions, for arg in request.args constructs),
> and not fight the language by framework-specific workarounds. They
> will benefit from it much more on the long run (as they are bound to
> have the same IndexError or KeyError problem anyway, just someplace
> else). My 0.02c.

-- 
Sincerely yours
Alexey Nezhdanov

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to