for / while else doesn't make sense

Jon Ribbens jon+usenet at unequivocal.co.uk
Mon May 23 13:09:24 EDT 2016


On 2016-05-23, Steven D'Aprano <steve at pearwood.info> wrote:
> But one thing is certain: very few people, Jon Ribbens being one of them,
> expects 1/3 to return 0. And that is why Python changed the meaning of
> the / operator: because using it for integer division was deeply unpopular
> and a bug magnet.

Making it return floats is also a bug magnet, just for more subtle
bugs that are harder to diagnose.



More information about the Python-list mailing list