Well, I finally ran into a Python Unicode problem, sort of

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Sun Jul 3 17:28:27 EDT 2016


On Monday, July 4, 2016 at 6:39:45 AM UTC+12, John Ladasky wrote:
> Here's another worm for the can.  Would you rather read this...
> 
> d = sqrt(x**2 + y**2)
> 
> ...or this?
> 
> d = √(x² + y²)

Neither. I would rather see

    d = math.hypot(x, y)

Much simpler, don’t you think?



More information about the Python-list mailing list