max_integer_supported_by_python

6 views
Skip to first unread message

uday3prakash

unread,
May 24, 2015, 9:16:09 PM5/24/15
to lamp_t...@googlegroups.com
while the maximum integer processable by python is stated as machine-dependent, what is importance of sys.maxint?

Vinesh Peringat

unread,
May 24, 2015, 9:30:32 PM5/24/15
to uday3prakash, lamp_t...@googlegroups.com
Hi Uday,

Good question !
Python (atleast post 3.xxxx version dont have restriction on max size
of integer.)

Hence if you see changelist in python.org, below sentence is added.
===
https://docs.python.org/3.1/whatsnew/3.0.html#integers

The sys.maxint constant was removed, since there is no longer a limit
to the value of integers. However, sys.maxsize can be used as an
integer larger than any practical list or string index. It conforms to
the implementation’s “natural” integer size and is typically the same
as sys.maxint in previous releases on the same platform (assuming the
same build options).
==

So summary, dont worry about it and if for some funny reason , please
use sys.maxsize post 3.x.x ...

Happy coding !

On 5/25/15, uday3prakash <uday3p...@gmail.com> wrote:
> while the maximum integer processable by python is stated as
> machine-dependent, what is importance of sys.maxint?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lamp_tutorial" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to lamp_tutoria...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
Reply all
Reply to author
Forward
0 new messages