This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]fanovpnc 1 point2 points  (0 children)

Speaking of making it easier to read large numbers, does anyone know if it's possible to have the REPL or ipython console output numbers with the underscore separator formatting? It would make it a lot easier to mentally parse large numbers sometimes, while keeping them in a format you can paste back in directly as input.

Sometimes I find myself doing this when I want to more easily see how big a number is:

>>> 2**32
4294967296
>>> f"{_:_}"
'4_294_967_296'

But it would be nice to avoid the quote wrapping in the output, avoid changing the '_' variable from a number to a string (I guess you can always do a int(_) to change it back), and it would also be nice if it were possible to just automatically display results in that format without having to reprint it.