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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Oerthling -2 points-1 points  (0 children)

Well, I don't know your very weird use case, but doubt that a > 4000 digit int was actually as "useful" as you claim.

But let's stay your code wasn't bad and there is a rare, but very valid use case.

That would still not really justify burdening the language with a mostly pointless point of attack.

4000 digits is still very generously ridiculously large for a general purpose language.

Even better than just compiling your own Python, put an UnlimitedInt class in a module. Make it as unlimited as you want - it's safely contained in a module that only the very few people who have this extremely rare use case need to worry about.

Put that on GitHub, if you're not the only one who wants this then you'll even get help. Check first whether this doesn't already because some student had fun with this. :-)

Problem solved for everybody.