Pedro Gimeno <pgpyb-4...@personal.formauri.es> added the comment:

> @Pedro Thanks again for the report! Just out of curiosity, how did you manage 
> to find this?

I'm writing a C strtod implementation and I was adding corner cases to the unit 
testing (now published here: 
https://codeberg.org/pgimeno/ACSL/src/branch/master/tests/test-strtod.c). 
Sometimes I get confused by whether to add one or subtract one to the exponent 
as digits are moved, and since I have an interactive Python shell always open 
as a calculator, I used it to make sure that the test I was writing had the 
correct exponent. But the result I got was not the one I expected, and upon 
verification, I soon became convinced that it was a bug, so I dug a bit more 
(at first I didn't notice it only happened if the leading zero was left out) 
and finally submitted the bug.

Thanks for the quick fix, by the way.

----------
resolution: fixed -> 
status: closed -> open
type: behavior -> 
versions:  -Python 3.10, Python 3.11

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44954>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to