title: Open() Requires Integer?
body: <p>The code reads:</p>
  
  <pre><code>file=open('cake.txt','w')
  </code></pre>
  
  <p>The following shows up:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#19&gt;", line 1, in &lt;module&gt;
  open('cake.txt','w')
  TypeError: an integer is required (got type str)
  </code></pre>
  
  <p>This syntax worked perfectly on the 3.6 version, now that i upgraded to 3.7 it doesn't. What is happening here? The "cake.txt' file doesn't exist by the way.</p>
  
  <p>The python documents are not helping either.</p>