[Zope3-dev] RFC: should z.a.c.attribute.AttributeIndex index None values?

Christian Theune ct at gocept.com
Fri Nov 17 11:38:03 EST 2006



Gary Poster wrote:
> On Nov 17, 2006, at 11:29 AM, Adam Groszer wrote:
> 
>> Hello Gary,
>>
>> At the moment it is
>> try:
>>     value = value()
>> except:
>>     return None
>>
>> So that will eat the exception without any signs.
>> That makes me also glum when I have to dig deep to discover that
>> something ate an exception.
>>
>> I propose to remove the try/except.
>> Is that OK?
> 
> Yes, I think removing the bare try...except is definitely the right  
> thing to do.  (Anyone care to disagree?)

Would that change the status of this to be a feature change instead of a
bug fix?

(I'd argue it's still a candidate for a bug fix, but people might rely
on this behavior in existing applications which makes it more of a
feature change.)

-- 
gocept gmbh & co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20061117/88d7b786/signature.bin


More information about the Zope3-dev mailing list