PyCon JP 2025 Logo
広島国際会議場
JPEN
Tushar Sadhwani

Tushar Sadhwani

How big can python integers *really* get

ランEN
02:15 - 02:4530min
DAY 1
09/26
FRI

You might know that Python doesn't have a max integer size. Unlike most other languages that are limited to having a 64 bit integer type, Python has a "theoretically infinite" maximum integer.

But, is that true?

Turns out no, Pythondoes have a maximum integer size. We'll look onto Python's source code and figure out how it stores and works with integer values.


トーク詳細 / Description

We'll be covering the following topics:

  • Python integers, and how they're different from all other languages (5 min)
  • How they are implemented in C (3 min)
  • What's truly the largest number that Python integers can store? (7 min)
  • How does Python efficiently do math with these integers? (10 min)
  • Q&A (5 min)
Tushar Sadhwani

Tushar Sadhwani

プロフィール

Long term Python dev, likes to work on open source software and Python developer tooling.