Dieter Maurer wrote:
Dmitry Vasiliev wrote at 2006-5-23 17:06 +0400:
...
PEP-3100 suggest "just call the object and catch the exception" instead of use
"callable()". So maybe we can write:
try:
ob()
except:
pass
return ob
Unfortunately exceptions still will be masked.
Yes, and therefore *NEVER* do this.
I don't like it also but the PEP suggest so... :-)
--
Dmitry Vasiliev (dima at hlabs.spb.ru)
http://hlabs.spb.ru
_______________________________________________
Zope3-dev mailing list
[email protected]
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com