Jason Tackaberry wrote:
> On Wed, 2009-06-17 at 17:16 +0200, Duncan Webb wrote:
>> When length = 'None' should be a ValueError, when length = None should
>> be a TypeError.
>
>>>> 0 + 'foo'
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: unsupported operand type(s) for +: 'int' and 'str'
>
> Am I misunderstanding what the code is doing?
No but I was worried about:
>>> int(None)
>>> int('None')
giving different exceptions.
A bit more testing and += does convert very big floats to floats so you
are correct and TypeError is sufficient.
Duncan
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel