Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python - Size limit of set data type

Tags:

python

I have a list with 7,200,000 elements in it. When I try to convert it with set() it cuts out to 4,500,000 elements. What can I do to bypass this problem?

I'm using Python 3.2.2 x86 on Windows.

like image 902
bbrodriges Avatar asked Dec 22 '22 06:12

bbrodriges


1 Answers

I think your list has duplicate elements which are removed in set. Sets include unique elements only.

like image 157
Emir Akaydın Avatar answered Jan 09 '23 09:01

Emir Akaydın