Python Forum
what does this expression yield? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: what does this expression yield? (/thread-13266.html)



what does this expression yield? - Skaperen - Oct-07-2018

what does this expression yield? 3-(len(repr(9223372036854775808))-19)


RE: what does this expression yield? - buran - Oct-07-2018

3
why?


RE: what does this expression yield? - ichabod801 - Oct-08-2018

The (top level) version of Python you are using.


RE: what does this expression yield? - wavic - Oct-13-2018

Funny

why is that?


RE: what does this expression yield? - stranac - Oct-13-2018

Because python 2 had an additional integer type, long.
The representation of such a number is 9223372036854775808L.