

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the max length of a Python string?
With a 64-bit Python installation, and 64 GB of memory, a Python 2 string of around 63 GB should be quite feasible. If you can upgrade your memory much beyond that, your maximum feasible strings should get proportionally longer. But this comes with a hit to the runtimes.
With a typical 32-bit Python installation, of course, the total memory you can use in your application is limited to something like 2 or 3 GB (depending on OS and configuration), so the longest strings you can use will be much smaller than in 64-bit installations with very high amounts of RAM.
- Related Questions & Answers
- What is the maximum length of string in Python?
- MongoDB. max length of field name?
- How to get the length of a string in Python?
- Python - Find the length of the last word in a string
- Return the length of a string array element-wise in Python
- What happens if the length of the original string is greater than the length of the string returned after padding in LPAD() or RPAD() functions?
- Find length of a string in python (3 ways)
- What is an efficient way to repeat a string to a certain length in Python?
- What is the MySQL VARCHAR max size?
- Python Generate random string of given length
- Is Max Heap in Python?
- What is the maximum length of a table name in MySQL?
- C++ Program to Find the Length of a String
- C program to find the length of a string?
- Check if a string contains a palindromic sub-string of even length in Python
Advertisements