what's this instance?
Bruno Desthuilliers
bruno.42.desthuilliers at wtf.websiteburo.oops.com
Tue Jan 22 06:48:02 EST 2008
J. Peng a écrit :
> Bruno Desthuilliers 写道:
>> J. Peng a écrit :
>>> def safe_float(object):
>>> try:
>>> retval = float(object)
>>> except (ValueError, TypeError), oops:
>>> retval = str(oops)
>>> return retval
>>> The code above works well.
>> For which definition of "works well" ?
>>
>
> I got it from Core Python Programming book I bought.You may ask it to
> Westley Chun.:)
Ok: Mr Chun, if you here us ?-)
More information about the Python-list
mailing list