+ 3

What is the largest size of file that Python can work with?

Anything that is a single byte larger than your answer should result in an exception with at least one of the following: write() close()

2nd Aug 2017, 6:38 PM
Erik Johanson
Erik Johanson - avatar
2 Réponses
+ 2
Note, NTFS is 16EiB (Exabytes)* which seems like it would be tricky to test... except this test code seems to have issues earlier. https://code.sololearn.com/cV414bDIoEE6/?ref=app * https://en.m.wikipedia.org/wiki/Comparison_of_file_systems#Limits
3rd Aug 2017, 4:56 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
Python has no maximum file size that can be read. You will only be limited by the RAM, operating system or processor of the computer running the code. Remember several programs are running on the RAM already, so once the remaining available space is taken by Python, you can guess what happens! So, it's not with Python, it's with the computer!
2nd Aug 2017, 7:56 PM
Saka Oluwadamilola
Saka Oluwadamilola - avatar