title: What is largest amount of data Python 3 can write at once?
body: <p>I wrote this program to experiment with file size in Python 3.6.2</p>
  
  <pre><code>import os
  
  #   Opening a text file a.txt in wite mode.
  fp = open("a.txt", "w")
  
  try:
      #   Writing 'a' in multiple of bytes.
      #   One 'a' consumes 1 byte. 
      #   1024*1024 is 1 MB.
      fp.write("a"*1024*1024*418) 
  
  except:
      print("Memory Error.")
  fp.close()
  </code></pre>
  
  <p>After 418 MB, program throws <strong><em>Memory Error</em></strong>. </p>
  
  <p>So am I to assume that Python 3 cannot write more than 418 MB at once?</p>