
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
What is the maximum size of list in Python?
Maximum length of a list is platform dependent and depends upon address space and/or RAM. The maxsize constant defined in sys module returns 263-1 on 64 bit system.
>>> import sys >>> sys.maxsize 9223372036854775807
The largest positive integer supported by the platform's Py_ssize_t type, is the maximum size lists, strings, dicts, and many other containers can have.
- Related Articles
- What is the maximum file size we can open using Python?
- What is the maximum size of a document in MongoDB?
- What is the maximum size of HTTP header values?
- Find size of a list in Python
- What is the MongoDB Capped Collection maximum allowable size?
- How to get the size of a list in Python?
- What is the maximum value of float in Python?
- What is the maximum length of string in Python?
- What is the homogeneous list in Python list?
- Python – Maximum of K element in other list
- How do we get the size of a list in Python?
- What is the maximum size of a web browser's cookies value?
- What is the maximum length of a string in Python?
- Maximum element in tuple list in Python
- How do we get size of a list in Python?

Advertisements