'10000.0'.strip('.0')
is expected to return '10000' but returns only '1'. Is the expectation wrong or is the result wrong ?
It behaves properly if the string ends as 'x.0' where x is anything other than 0. Also, this strange result is consistent for '[a-zA-Z0-9]x{n}.x{n}' for any x and any n>0 .
So what it does is, it strips not only what follows the dot, but before too. If this is what strip is programmed to do, somehow it doesn't align with my expectation.