osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

optional int- and float arguments


On Wed, 4 Oct 2017 03:18 am, Stefan Ram wrote:

>   ?int? and ?float? seem to behave quite similar:
> 
> |>>> int( x = 8 )
> |8
> |>>> float( x = 8.0 )
> |8.0


I expect that these functions taking a *named* parameter "x" is an accident that
shouldn't be relied on.


-- 
Steve
?Cheer up,? they said, ?things could be worse.? So I cheered up, and sure
enough, things got worse.