View Active Threads
View Today's Posts
Home
Forums
View New Posts
View Today's Posts
My Discussions
Unanswered Posts
Unread Posts
Active Threads
Mark all forums read
Staff List
Member List
Help
Calendar
Search
Statistics
Interpreter
IRC
Maximum Elements in List
Python Forum
Python Coding
General Coding Help
Thread Rating:
0 Vote(s) - 0 Average
1
2
3
4
5
Thread Modes
Maximum Elements in List
ankit_1148
Unladen Swallow
Posts:
1
Threads:
1
Joined:
Sep 2017
Reputation:
0
#1
Sep-01-2017, 11:01 PM
I have a doubt - How to find the maximum no. of elements that can be placed in one list.
Also, how can I extend this size limitation.
Thanks
Reply
Find
Reply
Larz60+
aetate et sapientia
Posts:
11,902
Threads:
476
Joined:
Sep 2016
Reputation:
452
#2
Sep-02-2017, 01:35 AM
(This post was last modified: Sep-02-2017, 01:35 AM by
Larz60+
.)
on a 32 bit system, maximum size is 536,870,912 items.
on a 64 bit system it's Hugh 9,223,372,036,854,775,807
you can find out by looking at the 'C' source,
PY_SSIZE_T_MAX
in pyport.h
do you need something larger?
if so, I recommend you get a huge loan and buy a Cray!
Reply
Find
Reply
Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
unable to remove all elements from list based on a condition
sg_python
3
629
Jan-27-2024, 04:03 PM
Last Post
:
deanhystad
mypy unable to analyse types of tuple elements in a list comprehension
tomciodev
1
604
Oct-17-2023, 09:46 AM
Last Post
:
tomciodev
Checking if a string contains all or any elements of a list
k1llcod3
1
1,309
Jan-29-2023, 04:34 AM
Last Post
:
deanhystad
How to change the datatype of list elements?
mHosseinDS86
9
2,216
Aug-24-2022, 05:26 PM
Last Post
:
deanhystad
ValueError: Length mismatch: Expected axis has 8 elements, new values have 1 elements
ilknurg
1
5,509
May-17-2022, 11:38 AM
Last Post
:
Larz60+
Why am I getting list elements < 0 ?
Mark17
8
3,376
Aug-26-2021, 09:31 AM
Last Post
:
naughtyCat
Looping through nested elements and updating the original list
Alex_James
3
2,260
Aug-19-2021, 12:05 PM
Last Post
:
Alex_James
Extracting Elements From A Website List
knight2000
2
2,519
Jul-20-2021, 10:38 AM
Last Post
:
knight2000
Make Groups with the List Elements
quest
2
2,072
Jul-11-2021, 09:58 AM
Last Post
:
perfringo
I cannot delete and the elements from the list
quest
4
3,150
May-11-2021, 12:01 PM
Last Post
:
perfringo
Users browsing this thread: 1 Guest(s)
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
Python Coding
-- General Coding Help
-- Data Science
-- Homework
-- GUI
-- Game Development
-- Networking
-- Web Scraping & Web Development
General
-- News and Discussions
-- Tutorials
---- Tutorial Requests and Submissions
---- Python Installation and Execution
---- Fundamentals
---- Common pitfalls and what to do
---- Web Scraping
---- Web Tutorials
---- GUI tutorials
---- Game Tutorials
---- Networking Tutorials
-- Code sharing
-- Code Review
-- Jobs
Forum & Off Topic
-- Board
---- Weekly Top Picks
-- Bar
User Panel
Messages
Log Out
My Profile
Pay your profile a visit
User Control Panel
Do some changes on your profile
My Messages
View private messages
unread
Avatar
Change avatar
Signature
Change signature
Announcements
Announcement #1
8/1/2020
Announcement #2
8/2/2020
Announcement #3
8/6/2020
Login to Python Forum
Enter your details to login to your account:
Remember me
Lost Password?
Login
Don't have an account yet?
Sign Up!
Linear Mode
Threaded Mode